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

What is abstraction example?

821


How to improve object oriented design skills?

745


What is meant by oops concept?

778


What is polymorphism in oops with example?

752


What is difference between polymorphism and inheritance?

802


What is the difference between abstraction and polymorphism?

834


What is pointer in oop?

721


Can destructor be overloaded?

791


Is oop better than procedural?

757


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1881


What is constructor in oop?

814


Why is abstraction used?

830


why reinterpret cast is considered dangerous?

2095


What is destructor example?

770


What is persistence in oop?

850