Computer Science, asked by divu5850, 1 year ago

How to call non static method in static method?

Answers

Answered by Sahi00072
0
The only way to call a non-static method from a static method is to have an instance of the class containing the non-static method. By definition, a non-static method is one that is called ON an instance of some class, whereas a static method belongs to the class itself.
Similar questions