7th Mar 2021, 2:31 AM
Ganesh M
Ganesh M - avatar
4 Respuestas
+ 1
also in main() call start() and print result of getSum()
7th Mar 2021, 6:34 AM
zemiak
+ 1
Sorry i cant understand let you explain this pls
7th Mar 2021, 6:51 AM
Ganesh M
Ganesh M - avatar
+ 1
public static void main(String[] args) { AddingTwoNumbers ad = new AddingTwoNumbers(); ad.start(); //@zemiak telling //add this at line no:45 System.out.println(ad.getSum());//print returned value ad = null; } //@Martin telling //remove '}' from line no:40, amd add this at line 48 } //observe changes..
7th Mar 2021, 8:21 AM
Jayakrishna 🇮🇳