what do you meant by Runtime Polymorphism?

Answer Posted / sumit taneja

Run Time Polymorphism -: When we have refrence variable of
Parent class that can store object of child as well as base
class...and we have same function in base calss and child
class...so which function will be executed that will depend
on the object refrence stored in Refrence variable..So this
is called Run Time polumorphism coz refrence variable is
binded to object at run time....

Is This Answer Correct ?    32 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are green threads in java?

637


How will you serialize a singleton class without violating singleton pattern?

1606


What is the difference between delete and delete[]

660


Explain the scope of a variable.

729


Can java inner class be static?

644






What environment variables are required to be set on a machine in order to run Java programs?

720


Can we use different return types for methods when overridden?

645


Is set sorted in java?

599


What are the different types of inheritance in java?

631


What is the functionability stubs and skeletons?

781


What does the “final” keyword mean in front of a variable? A method? A class?

639


What is the base class of all classes?

654


What is the difference between a constructor and a method?

698


What is a treemap in java?

639


What is the benefit of inner classes in java?

722