Computer Science, asked by aimanhakim0718, 4 months ago

What is the difference between overriding and overloading?

Answers

Answered by mvenu1616
1

Answer:

When two or more methods in the same class have the same name but different parameters, it's called Overloading. When the method signature (name and parameters) are the same in the superclass and the child class, it's called Overriding.

Answered by llMahirll
1

Explanation:

When two or more methods in the same class have the same name but different parameters, it's called Overloading. When the method signature (name and parameters) are the same in the superclass and the child class, it's called Overriding.

Similar questions