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

Answers were Sorted based on User's Feedback



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

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

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

Answer / shaadaa

GUI Builder Application's Toolbox can be taken as example of runtime polymorphism. we do not know until runtime which tool is going to be selected by user.

Is This Answer Correct ?    1 Yes 9 No

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

Answer / jyoti

yes

Is This Answer Correct ?    8 Yes 18 No

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

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

More Core Java Interview Questions

What are parsers? Dom vs sax parser.

0 Answers  


What is the use of list in java?

0 Answers  


Compare overloading and overriding?

0 Answers  


What are legal modifiers that we can use to declare an inner class?

1 Answers   Infosys,


What about interthread communication and how it takes place in java?

0 Answers  


What is meant by Static query and Dynamic query?

2 Answers  


Why super is first line in java?

0 Answers  


Can we define static methods inside interface?

0 Answers  


which class to use when concatenating strings in a loop.

3 Answers   IBM,


What is the order of method invocation in an Applet?

1 Answers  


What is a linkedhashmap java?

0 Answers  


can java object be locked down for exclusive use by a given thread? : Java thread

0 Answers  


Categories