0
How to call constructor of a different class which is in same package .
4 Respostas
+ 4
Just create an object of the class. It will automatically trigger the constructor if there's one.
+ 3
Type in the class's name:
Animal dog = new Animal("Doggo");
+ 1
I do not understand your problem.
+ 1
New cladsName(parans);