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 » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » Basic library interface and separation problem
Re: Basic library interface and separation problem [message #21873 is a reply to message #21860] Mon, 08 June 2009 22:57 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
Hello skyhawk

Sorry, with so many A, and B, and foo, and bar, ..., I am lost!.

For me, when I see that I have two classes that share things I have three options:
- Redesign them dividing the functionalities so that finally I have different classes
- Make a common class with common funcionalities and derive both from this common class.
- Join them in one class.

You have to know how to cut and remix the classes. Or put a more defined sample and we can tell you our opinion.

Best regards
Koldo


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: overloading operators rules
Next Topic: Ultimate++ possible adaptation to C++0x
Goto Forum:
  


Current Time: Mon Aug 25 11:34:42 CEST 2025

Total time taken to generate the page: 0.07553 seconds