0
How to call a function from the same class
do we need to mention object also
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();