In object oriented programming...
When we should using (as a member) or inheriting a related class to our class?
Anything can be considered to make our decision?
(Any object oriented programing language are not prohibited)
Thanks in advance.
In object oriented programming...
When we should using (as a member) or inheriting a related class to our class?
Anything can be considered to make our decision?
(Any object oriented programing language are not prohibited)
Thanks in advance.
Consider the Liskov Substitution Principle (warning: PDF file).
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.