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...


why overriding?

Answers were Sorted based on User's Feedback



why overriding?..

Answer / ejaz

In two classes(having parent child/common interface
relation) methods with same signature and execution of
method decided at run time based on object type.

Is This Answer Correct ?    4 Yes 0 No

why overriding?..

Answer / vic

To elaborate on Ejaz's answer, the run time determination
will only happen if the functions being called were declared
as being virtual.

If they weren't, then the function to be called will be
determined at compile time according to the object type.

Is This Answer Correct ?    0 Yes 0 No

why overriding?..

Answer / kamal

same function name and same argument list

Is This Answer Correct ?    5 Yes 6 No

Post New Answer

More OOPS Interview Questions

Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)

4 Answers  


What is difference between #define and const?

3 Answers   emc2,


explain dynamic binding by drowing

2 Answers   Cognizant,


What are virtual functions?

2 Answers  


What is polymorphism what is it for and how is it used?

0 Answers  


What is the difference between Home and $Home?

2 Answers   TCS,


What does enum stand for?

0 Answers  


what is namespace? what are the uses of namespace?

1 Answers  


What are the 3 pillars of oop?

0 Answers  


what is the realstic modeling?

1 Answers  


Why it is called runtime polymorphism?

0 Answers  


what type of questions

0 Answers   IBM,


Categories