G
Guest
Hello all,
I have a question related to object oriented programming as follows:-
Lets say I have a base class called BaseClass which has 2 methods Method1()
and Method2(). Also lets assume that Method1() has code that invokes
Method2()
Now lets say a new class called InheritedClass inherits BaseClass and
overrides Method2()
If I call InheritedClass.Method1() the which Method2() code will fire? The
one contained in BaseClass or the one contained in InheritedClass?
TIA!
I have a question related to object oriented programming as follows:-
Lets say I have a base class called BaseClass which has 2 methods Method1()
and Method2(). Also lets assume that Method1() has code that invokes
Method2()
Now lets say a new class called InheritedClass inherits BaseClass and
overrides Method2()
If I call InheritedClass.Method1() the which Method2() code will fire? The
one contained in BaseClass or the one contained in InheritedClass?
TIA!