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

What is difference between class and object with example?

571


What is a superclass in oop?

678


What is encapsulation in oop?

613


How do you define a class in oop?

640


What does oop mean in snapchat?

698






What does and I oop mean in text?

637


What are two types of polymorphism?

622


What is object in oop?

699


What do you mean by overloading?

591


Write a program to reverse a string using recursive function?

1802


write a program that takes input in digits and display the result in words from 1 to 1000

1999


What is polymorphism and example?

598


What is abstraction and encapsulation?

583


Can destructor be overloaded?

605


What is polymorphism in oops?

567