difference between overloading and overridding

Answer Posted / preeti

in overloading methods can have the same name but must
have different parameter lists i.e signature

while in overriding if you declare a field in a subclass
with the same name as one in the superclass, the superclass
field can only be accessed using super or the superclasses
type

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1889


What is overriding in oops?

844


What is static modifier?

856


What is static in oop?

839


What is the oops and benefits of oops programming?

753


what type of question are asked in thoughtworks pair programming round ?

1977


What does and I oop and sksksk mean?

885


What is the main purpose of inheritance law?

961


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

2289


What is object in oops?

838


Why interface is used?

764


How is class defined?

852


What is difference between abstraction and encapsulation?

826


What is the real time example of inheritance?

879


Which language is pure oop?

764