difference between overloading and overridding

Answer Posted / k.senthil arasur sathyamangala

overloading:Two function have same name and same return type
but different type of arguments used.


overriding:Two function have same name and same arguments
used but that function defined in a base class redefined in
a derived class

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class and object in oops?

615


Why is polymorphism used?

588


What is multilevel inheritance explain with example?

630


What is the difference between encapsulation and polymorphism?

598


What is coupling in oops?

600






How to hide the base class functionality in Inheritance?

642


What is encapsulation selenium?

558


What is encapsulation in simple terms?

545


write string class as your own class in java without using any built-in function

1984


What is class encapsulation?

608


Can static class have constructor?

589


What does it mean when someone says I oop?

588


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1795


What is the types of inheritance?

604


What does <> mean pseudocode?

626