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 304 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 153
  • Karma: 0
    • No Addiction
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
1277 Views
Last post 11-10-2011, 19:42:34
by SEotusta
4 Replies
1332 Views
Last post 09-03-2011, 20:53:43
by coniefox
0 Replies
583 Views
Last post 07-20-2012, 01:09:31
by tomjohn
3 Replies
1085 Views
Last post 12-13-2016, 23:31:12
by saravjeet
0 Replies
377 Views
Last post 09-03-2016, 03:43:26
by beingchinmay