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

assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1891


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6708


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2057


What are properties in oop?

807


What is an interface in oop?

776


What is encapsulation process?

783


Why do we use class?

813


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2212


What is the highest level of cohesion?

766


What is encapsulation in ict?

805


What is the renewal class?

2413


What is for loop and its syntax?

800


Why is there no multiple inheritance?

763


Prepare me a program for the animation of train

2217


What are the types of abstraction?

771