In my case, I have two classes MenuActivity, MinhaEscolaActivity
.
There is a method in MenuActivity called quemSouEu
, it is a non static method.
It also needs some properties defined on MinhaEscolaActivity's constructor method.
If I instanciate a new object of MinhaEscolaActivity
on MenuActivity
, these properties will be null, and i'll get NullPointerException
.
Is there a way to use the method quemSouEu
from MenuActivity
class?