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.
Printable View
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).