Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
victorb is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: something abaut brc file
Next Topic: XML Error
Goto Forum:
  


Current Time: Thu Jul 31 22:17:46 CEST 2025

Total time taken to generate the page: 0.13353 seconds