When is a template a better solution than a base class in C+?

Author Topic: When is a template a better solution than a base class in C+?  (Read 1154 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 158
  • Karma: 0
    • We Helpline
When you are designing a generic class to contain or otherwise manage objects of other types, when the format and behavior of those other types are unimportant to their containment or management, and particularly when those other types are unknown (thus, the generality) to the designer of the container or manager class.


 

Related Topics

  Subject / Started by Replies Last post
3 Replies
2276 Views
Last post 11-10-2011, 19:42:34
by SEotusta
6 Replies
2503 Views
Last post 06-05-2021, 00:25:17
by kareem
0 Replies
1412 Views
Last post 07-20-2012, 01:09:31
by tomjohn
0 Replies
1333 Views
Last post 09-03-2016, 03:43:26
by beingchinmay
0 Replies
1648 Views
Last post 06-03-2017, 11:48:36
by steve907