0

How to call a function from the same class

do we need to mention object also

20th Sep 2017, 3:54 PM
Zaid Shamshad
Zaid Shamshad - avatar
1 Answer
+ 3
If the method is static or the method you are calling from is not static: myMethodName(); If the method is not static and the method you are calling from is static: MyClassName objName = new myClassName(); objName.myMethodName();
20th Sep 2017, 4:25 PM
Rrestoring faith
Rrestoring faith - avatar