Dear NewsGroupers,
I am relatively new to OOP and cannet get my head around this problem.
I have two classes. Class Child extends Parent.
There is no constructor for the Child class. So when I create a child object
the constructor for the parent object is called. That works fine.
But now I have the problem that I want to add an already existing Parent
object to create a new Child object. How can this be done?
TIA
pablo
I am relatively new to OOP and cannet get my head around this problem.
I have two classes. Class Child extends Parent.
There is no constructor for the Child class. So when I create a child object
the constructor for the parent object is called. That works fine.
But now I have the problem that I want to add an already existing Parent
object to create a new Child object. How can this be done?
TIA
pablo
Comment