difference between overloading and overridding

Answer Posted / manish chakravarti

overloading:Two function have same name and same return type
but different type of arguments used.


overriding:Two function have same name and same arguments
used but that function defined in a base class redefined in
a derived class

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can abstract class have normal methods?

804


Whats is abstraction in oops?

849


What is the difference between static polymorphism and dynamic polymorphism?

864


What is protected in oop?

825


Why oops is important?

803


What does and I oop mean in text?

869


what type of question are asked in thoughtworks pair programming round ?

1977


Why do we use oops?

774


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

943


What are objects in oop?

849


What is encapsulation oop?

811


What are the types of abstraction?

789


What is balance factor?

832


Can we create object of abstract class?

847


What is multilevel inheritance in oop?

786