Difference between over loading and over ridding?

Answer Posted / nagababu

Overloading:-Writing Two or three methods with same name
but different parameters in same class,it is called
methodOverloading.

Overriding:-writing same methodname and parameters in
subclass and superclass with same return type,it is called
methodoverriding.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create object of interface?

611


Which is not an object oriented programming language?

544


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1639


What is object and example?

604


What is destructor give example?

608






How do you use inheritance in unity?

595


What language is oop?

597


What is difference between pop and oop?

609


What is cohesion in oop?

624


What is the example of polymorphism?

562


What is abstraction example?

624


How is class defined?

588


Can static class have constructor?

587


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.

6489


What is constructor overloading in oop?

607