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

Is void a data type in java?

987


What is a function argument in java?

997


Is string serializable in java?

1020


What is jvm? Why is java called the platform independent programming language?

1022


What is the main use of generics in java?

991


Is string a data type in java?

1020


Is java an ide?

981


Explain the difference between collection api and stream api in java8?

974


Explain the importance of finalize() method.

968


What is fundamental datatype?

998


Give the hierarchy of inputstream and outputstream classes.

1101


What is java util concurrentmodificationexception?

910


Explain Basics of OOP Language in java

1060


If a class is declared without any access modifiers, where may the class be accessed in java programming?

1216


What do you mean by jjs in java8?

990