Answer Posted / zeeshan
Polymorphism can be achieved by two ways:
1.Overloading 2.Overriding
1.Overloading: Overloading means methods have same name but
different arguments it can be achieved at Compile Time.
1.Overriding: Overloading means when we make method virtual
in base class and we also want that it also used in child
then we use override keyword for that method and and it can
be achieved at Run Time.
| Is This Answer Correct ? | 21 Yes | 1 No |
Post New Answer View All Answers
What is encapsulation selenium?
Is this job good for future? can do this job post grduate student?
Which language is pure oop?
What is overloading in oop?
What is inheritance and how many types of inheritance?
What causes polymorphism?
What is the point of polymorphism?
Can bst contain duplicates?
Why do we use oop?
write a C++ program for booking using constructor and destructor.
What are the benefits of polymorphism?
What is polymorphism give a real life example?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Can a varargs method be overloaded?
What do you mean by variable?