Hello,
Is it possible to have the object of the class that instantiated in the instantiated class?
Eg:
-
(Incorrect syntax, just a guess)
public class Classe2 { // Metodos e vetores da classe }
Instance of Class2 in Class1 with the object:
public class Classe1 {
public static void main(Object classe){
Classe2 classe = new Classe2(Classe1); // Aqui passando o object da classe como parâmetro.
}
}
In Class2 I need the return methods of Class1 , I need this at the instance of Class1 .