ScrumpyJackk
Programmer
hey guys,
I'm trying to understand some harder OO concepts at the moment. My question is this.
If I already have a class that performs almost all that I require, would it be better to write a new class that inherits from the current class, or to write a new class that wraps the current class and delegates as much responsibility as possible to it?
Any ideas would be appreciated.
Jack
I'm trying to understand some harder OO concepts at the moment. My question is this.
If I already have a class that performs almost all that I require, would it be better to write a new class that inherits from the current class, or to write a new class that wraps the current class and delegates as much responsibility as possible to it?
Any ideas would be appreciated.
Jack