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 does no cap mean?

778


Which is not an object oriented programming language?

725


Why do we use polymorphism?

755


What is the benefit of oop?

752


What is the purpose of polymorphism?

867


What is new keyword in oops?

776


What is the difference between a constructor and a destructor?

838


why reinterpret cast is considered dangerous?

2097


Can bst contain duplicates?

931


What does I oop mean?

820


State what is encapsulation and friend function?

930


What is the important feature of inheritance?

848


What are oops functions?

776


How to hide the base class functionality in Inheritance?

841


What is basic concept of oop?

881