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 polymorphism give a real life example?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What do you mean by abstraction?
what is difference between class template and template class?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is abstract class in oops?
What are the three parts of a simple empty class?
what are the ways in which a constructors can be called?
• What are the desirable attributes for memory managment?
What is destructor example?
Where You Can Use Interface in your Project
Why is polymorphism needed?
What is polymorphism and example?
What is the significance of classes in oop?
What is abstraction in oop?