Multiple class inheritance in Java
satya - 10/22/2013 1:24:11 PM
Simulating multiple class inheritance in java?!gquestion
Simulating multiple class inheritance in java?!gquestion
satya - 10/22/2013 1:24:28 PM
Simulating multiple class inheritance in java?
Simulating multiple class inheritance in java?
satya - 10/22/2013 1:27:22 PM
One approach I have used
==> Your intent
DerivedClass
SuperClass1
SuperClass2
==> Do this
SuperClass1 implements ISuperClass1
SuperClass2 implements ISuperClass2
==> then
DerivedClass implements
ISuperClass1
ISuperClass2
==> Have member variables
SuperClass1 impl1;
SuperCalss2 impl2;
=> Finally
impl1 <= delegate all of ISuperClass1 methods
impl2 <= delegate all of ISuperClass2 methods