what is overloading and overriding?

Answer Posted / nishanthi

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 ?    17 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

any one please tell me the purpose of operator overloading

1965


Is oop better than procedural?

570


Can main method override?

583


What does oop mean in snapchat?

680


Are polymorphisms mutations?

697






Where is pseudocode used?

563


2. Give the different notations for the class.\

1586


What is difference between data abstraction and encapsulation?

613


What is polymorphism what is it for and how is it used?

572


What is encapsulation with real life example?

570


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1145


How is polymorphism achieved?

583


What is object in oop?

679


What is inheritance write a program to show use of inheritance?

611


Get me an image implementation program.

1557