Methods with same signature in Java (different return type)
BatuhanBatuhan (1)


I have a Java assignment. I am supposed to make a class with two "Multiply" methods one returns the result and the other returns void and modifies the object that invokes it.

How is this possible in Java? Just giving me some keywords for where to look would be very helpful. Inheritance? Polymorphism? Interfaces? Abstract classes?


You are viewing a single comment. View All