program for define class ,define instance methods and overload them and use them for dynamic invocation | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
- 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