Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is real-time example of runtime polymorphism and
compile time polymorphism

Answer Posted / harish kumar

Run time polymorphism : function and Operator overloading is
a runtime polymarphism. Example:- Bank Account, savings and
current(here, account class is the base class, savings and
current account are derived classes, the objects of each are
created at run time)

compiler time polymorphism : virtual function is a compiler
time polymorphism. Example:- calculating area of square and
rectangle (different classes, square and rectangle have a
function called area() which takes different arguments (for
square only one argument and for rectangle two arguments-) )

Is This Answer Correct ?    11 Yes 55 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is size of int in java?

1100


What is dynamic array in java?

1077


what is the significance of listiterator in java?

1118


What is a nested structure?

1103


What are JVM.JRE, J2EE, JNI?

1161


Is there any tag in htm to upload and download files?

1089


How to display all the prime numbers between 1 and 100

1080


What is difference between java and java ee?

1074


Difference between static binding and dynamic binding?

1183


What is join () in java?

1012


What are the six ways to use this keyword?

1112


How does arraylist work in java?

1167


What does system.gc() and runtime.gc() methods do?

1093


What is the advantage of OOP in java?

1205


Given a singly linked list, determine whether it contains a loop or not without using temporary space?

1032