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

What is the outcome of the line of code "cout<<abs(- 16.5);"? 1) 16 2) 17 3) 16.5

16 Answers   TCS,


Can we call a base class method without creating instance?

6 Answers  


What is a scope resolution operator?

5 Answers   HP, IBS,


What is property in oops?

0 Answers  


what is the difference between class to class type conversion and copy constructor ?

2 Answers  


How can i write a code in c# to take a number from the user and then find all the prime numbers till the number entered by the user.

4 Answers   NIIT, TCS,


why we are declare the function in the abstract class even though we are declaring it in Derived class?

1 Answers   TCS,


Program to print 0 to 9 in cross order

3 Answers  


Why is abstraction used?

0 Answers  


What is polymorphism explain its types?

0 Answers  


what are the different types of qualifier in java?

0 Answers   TCS,


Why is there no multiple inheritance?

0 Answers  


Categories