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
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is overloading and its types?
Give two or more real cenario of virtual function and vertual object
Which is better struts or spring?
What are the advantages of polymorphism?
What are the 3 principles of oop?
Why is oop better than procedural?
State what is encapsulation and friend function?
What is the real time example of encapsulation?
Can an interface inherit a class?
What is abstraction in oop with example?
can we make game by using c
What are oops functions?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
what is difference between class template and template class?