what is overloading and overriding?

Answer Posted / mostafa zedan

Overriding - same method names with same arguments and same
return types associated in a class and its subclass.

Overloading - same method name with different arguments,
may or may not be same return type written in the same
class itself.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is constructor overloading in oop?

601


How do you define a class in oop?

626


Can you explain polymorphism?

578


what is the sylabus for priliminaries?

1685


hi all..i want to know oops concepts clearly can any1 explain??

1681






Write a program to sort the number with different sorts in one program ??

1914


What is the highest level of cohesion?

575


What are the benefits of interface?

577


What is abstraction oop?

623


c++ program to swap the objects of two different classes

1761


What is encapsulation in oops?

534


What is difference between polymorphism and inheritance?

617


How long to learn object oriented programming?

563


What is protected in oop?

602


Can a destructor be called directly?

599