Difference between Overloading and Overriding?

Answer Posted / meenu kathuria

overloading: same name but different signatures in same class
overriding: same name and same signature defined in
different class.

Is This Answer Correct ?    103 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do pointers work?

683


Tell me an example where stacks are useful?

560


Can you write a function similar to printf()?

646


What are enumerations?

631


What are the benefits of oop in c++?

558






How does a copy constructor differs from an overloaded assignment operator?

537


What is difference between class and function?

564


what are the iterator and generic algorithms.

1455


What is the full form of c++?

583


Differences between private, protected and public and give examples.

550


Explain the benefits of proper inheritance.

621


What is a constant reference?

591


What is a class definition?

593


Can we define a constructor as virtual in c++?

584


What are the two types of comments, and how do they differ?

556