Home » U++ Library support » U++ Core » Derivating from Vector<>
Re: Derivating from Vector<> [message #8422 is a reply to message #8415] |
Thu, 08 March 2007 16:30  |
victorb
Messages: 78 Registered: December 2005 Location: Nice, France
|
Member |
|
|
The main reasons because derivating from containers seem to be:
1- the lack of virtual destructor,
2- member function are not virtual then you can override them.
However in my case I am just adding a few properties to Vector<> and I don't want to have to rewrite the Add()/Remove()/... then I'll stick with inheritance. I agree that composition should be the preferred way in more complex cases.
Thanks,
Victor
|
|
|
 |
|
Derivating from Vector<>
By: victorb on Sat, 03 March 2007 20:12
|
 |
|
Re: Deriving from Vector<>
By: victorb on Sat, 03 March 2007 20:37
|
 |
|
Re: Deriving from Vector<>
By: victorb on Sat, 03 March 2007 20:48
|
 |
|
Re: Deriving from Vector<>
By: victorb on Sat, 03 March 2007 22:17
|
 |
|
Re: Deriving from Vector<>
By: victorb on Wed, 07 March 2007 00:54
|
 |
|
Re: Deriving from Vector<>
By: victorb on Wed, 07 March 2007 01:14
|
 |
|
Re: Derivating from Vector<>
By: victorb on Wed, 07 March 2007 01:30
|
 |
|
Re: Derivating from Vector<>
By: victorb on Wed, 07 March 2007 17:05
|
 |
|
Re: Derivating from Vector<>
By: mirek on Thu, 08 March 2007 13:55
|
 |
|
Re: Derivating from Vector<>
By: victorb on Thu, 08 March 2007 16:30
|
Goto Forum:
Current Time: Thu Jul 31 22:17:46 CEST 2025
Total time taken to generate the page: 0.13353 seconds
|