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 the difference between "overloading" and "overridding"?

Answers were Sorted based on User's Feedback



What is the difference between "overloading" and "overridding"?..

Answer / shivanannd

overloading means that we can use same method with same
name many times for multiple purpose in a class with
difference parameters.

overriding means we can refer a method of a base class with
same name in a derived class with same paameters.

Is This Answer Correct ?    8 Yes 0 No

What is the difference between "overloading" and "overridding"?..

Answer / shakti singh khinchi

Overloading: When more then 1 methods in a class having same
name but they are different in their number of parameters,
different in their parameters types and their order.

Overriding: When a parent class is derived by a child class
and some method which has present in parent class which is
declared as "virtual" in parent class , same method with
same name and parameters and sam type is also declared in
child class without "virtual" keyword, bcz it is by default
virtual in child. SO PARENT AND CHILD CLASS USES SAME METHOD
ARE CALLED OVERRIDING.

Is This Answer Correct ?    4 Yes 0 No

What is the difference between "overloading" and "overridding"?..

Answer / vighnesh

Overloading uses same funtion with different parameters

Overriding Uses same exactly similar funtion prototypes
this used in runtime polimorphism ie Virtual Funtions

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is boyce codd normal form in c++?

0 Answers  


Explain function overloading

0 Answers  


What is polymorphism in c++? Explain with an example?

0 Answers  


Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

0 Answers  


total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.

0 Answers  


What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?

3 Answers  


what is the size of a class which contains no member variables but has two objects??? is it 1 or 2??

4 Answers  


How can you differentiate between inheritance and implementation in c++?

0 Answers  


What does return 0 do in c++?

0 Answers  


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

0 Answers  


What are the weaknesses of C++?

1 Answers  


what is data Abstraction

2 Answers  


Categories