compare and contrast overloading and a overridind methods in java
Answers
Answered by
4
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
0
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.
Similar questions
History,
1 month ago
Social Sciences,
1 month ago
Social Sciences,
3 months ago
Science,
3 months ago
Hindi,
9 months ago
Hindi,
9 months ago
Chemistry,
9 months ago