Difference ways of Polymorphism?

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


Please Help Members By Posting Answers For Below Questions

assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1671


What is abstraction with example?

608


What does and I oop mean in text?

625


What is destructor example?

601


What is multilevel inheritance?

727






What are the important components of cohesion?

557


what are the different types of qualifier in java?

1845


What is a class in oop?

607


What is persistence in oop?

675


What is encapsulation process?

584


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1654


What is meant by multiple inheritance?

740


Is abstract thinking intelligence?

599


What is abstraction example?

624


What is inheritance write a program to show use of inheritance?

615