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


Difference between Overloading and Overriding?

Answers were Sorted based on User's Feedback



Difference between Overloading and Overriding?..

Answer / manu chaudhary

overloading- having different functions with same function_names but must have different signatures(parameters).

overriding- if a base class have a member function and its derived class also have a member function with same name and signature then when that same name function is called in the main function with the object of derived class then the function in the derived class is called that means the function with sam ename in the base class overrides, and this is known as function overriding.
If you have to call the function of the base class then you can call it within the scope of derived class function by using ::(scope resolution) operator.

Is This Answer Correct ?    0 Yes 0 No

Difference between Overloading and Overriding?..

Answer / abc

overload is workload
but override is not workload......

isn't it ??????

Is This Answer Correct ?    0 Yes 0 No

Difference between Overloading and Overriding?..

Answer / ravi kolate(ty)

overloadind is the method in which have same function name
and return type but it has different number of passing
argument.
float a(float a,int a)
{
float a(float num)
{
//code
}
}
while in overriding method their are same function name
same return type and same parameter passing passing to
parent class to child class.
in java their is tedius problems in method overriding ,to
solve problem java introduce a interface.

Is This Answer Correct ?    1 Yes 2 No

Difference between Overloading and Overriding?..

Answer / kailash joshi

overloading : class a { volume(int a,int b)
}
class b { public volume(int a,int b,int c)
}
"different signatures"

overriding : class a { public volume(int a,int b)
}
class b { public volume(int a,int b,int c)
}
"same signatures";

Is This Answer Correct ?    0 Yes 1 No

Difference between Overloading and Overriding?..

Answer / kunal

Overloading - Two or more functions having same name but
different siganture(i.e arguements or return types) for eg.
we have a function named as area then
area();,float area();,area(float a,float b);,float area
(float a,float b);

Overriding - When a function of base class is re-defined in
the derived class.for eg.
base class
{
area(float a,float b);
}
derive class
{
float area();
}

Is This Answer Correct ?    42 Yes 109 No

Post New Answer

More C++ General Interview Questions

What is main function in c++ with example?

0 Answers  


Differentiate between a copy constructor and an overloaded assignment operator.

0 Answers  


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

0 Answers  


What are smart pointers?

3 Answers  


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

0 Answers  


What are the rules for naming an identifier?

0 Answers  


Show the application of a dynamic array with the help of an example.

0 Answers  


What is the purpose of the "delete" operator?

0 Answers  


What is a class template?

0 Answers  


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

0 Answers  


Write a Program to find the largest of 4 no using macros.

0 Answers  


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

0 Answers  


Categories