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 the point of polymorphism?

595


What is the advantage of oop over procedural language?

630


What is destructor example?

602


Whats oop mean?

601


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1414






What does oop mean in snapchat?

689


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

1656


What is object and example?

606


Is html an oop?

586


What is encapsulation and abstraction? How are they implemented in C++?

640


What is the problem with multiple inheritance?

589


What is constructor in oop?

591


What is encapsulation process?

586


Why polymorphism is used in oops?

589


What is pointer in oop?

541