When is a method said to be overloaded and when is a method said to be overridden?
Answer:
-Overloading deals with multiple methods in the same class with the same name but different method signatures.
-Overriding deals with two methods, one in the parent class and the other one in the child class and has the same name and signatures
Share To Friends Via:
More Questions For Programming in Java:
What is Java? (Answered) What is Java? . Posted On:Sat 20, March 2021 20:03:42 pm