Explain the difference between method overloading and method overriding.
Answers
Answered by
0
"In overloading, the different methods in one class have same name but have different parameters.
In overriding, the methods as well as the parameters have same names.
In overloading polymorphism is not applicable but it is applicable in overriding.
Overloading is a compile-time concept but the later is a run-time concept."
Similar questions
Math,
7 months ago
Computer Science,
7 months ago
Social Sciences,
7 months ago
Physics,
1 year ago
Chemistry,
1 year ago