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 ?    24 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which type does string inherit from?

614


What is the point of oop?

650


How Do you Code Composition and Aggregation in C++ ?

24190


program for insertion ,deletion,sorting in double link list

2276


What is inheritance in oop?

597






What is encapsulation selenium?

554


Can an interface inherit a class?

557


What is an interface in oop?

591


What is the highest level of cohesion?

575


What is object in oop?

679


what type of questions

1697


What is inheritance in simple words?

624


Why do we use encapsulation in oops?

518


What is difference between pop and oop?

603


which feature are not hold visual basic of oop?

1721