program for define class ,define instance methods and overload them and use them for dynamic invocation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

program for define class ,define instance methods and overload them and use them for dynamic invocation

program on class,methode , method overload

31st Jul 2017, 5:06 AM
sunil thakare
sunil thakare - avatar
1 Answer
- 1
class Example{ // class public void doSomething(){ // method // do something } public void doSomething(String input){ // overloaded method // do something, preferably with the input } }
31st Jul 2017, 7:38 PM
marit vandijk