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 / rushugroup

Run time polymorphism: Bank Account, savings and current
(here, acoount class is the base class, savings and current
account are derived classes, the objects of each are created
at runtime)

Compile time polymorphism: 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 ?    111 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of java?

914


What are the types of literals?

1122


What is meant by string is immutable?

1030


Describe the Big-O Notation.

1013


What is the syntax and characteristics of a lambda expression?

1005


Which variables are stored in heap?

990


What is a dynamic array java?

905


Can you declare the main method as final?

981


What will happen to the exception object after exception handling?

963


How does hashset work in java?

1081


Name and explain the types of ways which are used to pass arguments in any function in java.

1038


Explain methods specific to list interface?

943


Why for each loop is used?

981


Can keyword be used as identifier?

923


How do you implement singleton class?

957