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 nested top-level class?

1097


What does this mean java?

1179


Can we declare an array without size in java?

1066


What is an eror in java?

1112


How do you get the length of a string in java?

1060


What is append in java?

1246


Why convert an applet to an application?

1163


What is the use of bufferedreader?

1048


What does sprintf return?

1118


Explain abstract class in java?

1131


Is main an identifier?

1062


Can an integer be null java?

1054


Explain about the dynamic behavior of core java?

1190


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

1022


What is the java reflection api? Why it’s so important to have?

1028