what is overloading and overriding?

Answer Posted / pranita panchakshare

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.
i aggry with this answer

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is object and example?

602


What is a class oop?

592


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1650


Why do we use inheritance?

628


Explain the advantages of inheritance.

670






What is difference between polymorphism and inheritance?

617


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

24190


What is the oops and benefits of oops programming?

549


What is the difference between a constructor and a destructor?

611


What is abstraction example?

616


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

1938


which feature are not hold visual basic of oop?

1721


Why do while loop is used?

572


write a C++ program for booking using constructor and destructor.

2042


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2101