What is the example of polymorphism?
No Answer is Posted For this Question
Be the First to Post Answer
What is encapsulation in oops?
What does enum stand for?
What is differance between Abstract and Interface
When is a memory allocated to a class?
What is the purpose of polymorphism?
What do you mean by binding of data and functions?
What is abstraction and encapsulation?
c++ is a purely oop concept?
what is oops
what is a class
Is this job good for future? can do this job post grduate student?
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)