Computer Science, asked by sm9092476, 5 months ago


(c)Can two methods have same name in java? write the features of objecte
programming that illustrates this concept.​

Answers

Answered by Oreki
1

Yes, Method/Function Overloading is a feature that allows a class to have more than one method having the same name, if their argument lists are different.

Method/Function Overloading is how Java illustrates/implements Polymorphism.

Polymorphism is the characteristics of being able to assign a different meaning or usage to something in different contexts, specifically, to allow a function/method, or an object to have more than one form.

Similar questions