Why do we use inheritance?
No Answer is Posted For this Question
Be the First to Post Answer
What is difference between new and malloc?
What is namespace?
Whats is abstraction in oops?
how many types of notations are in java
1 Answers National University of Modern Languages (NUML),
How to call a non virtual function in the derived class by using base class pointer
for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)
Can we have a private virtual method ?
What is abstraction encapsulation?
Do you know about multiple inheritance?
wht is major diff b/w c and c++?
What do you mean by inline function?
WHEN A COPY CONSTER IS CALL ?