I have a class that creates an object of type Smo. Then the object calls a static method from another class. The static method requires me to pass the object to it, which calls it. How to assign a caller as a passed parameter.
For example:
class Smo { Smo() { } void sponge() { car.dancing(??????);
java oop class
Prospero
source share