Q
question
I want to know incase there is any performance difference or overhead
in calling a base class method and a derived class method.
Basically I am talking about simple method that is not overridden nor
virtual. If I declare a method in the base class say M1() and another
in derived class M2(). Then I make a derived class object derived. I
then invoke these:
derved.M1()
derived.M2()
What difference would it be.
Also does the size of the class object increase with more method
members in the class. Incase I add methods to the base class would it
increase the size of the derived class also.
Thankx in advance to you all.
in calling a base class method and a derived class method.
Basically I am talking about simple method that is not overridden nor
virtual. If I declare a method in the base class say M1() and another
in derived class M2(). Then I make a derived class object derived. I
then invoke these:
derved.M1()
derived.M2()
What difference would it be.
Also does the size of the class object increase with more method
members in the class. Incase I add methods to the base class would it
increase the size of the derived class also.
Thankx in advance to you all.