+ 1
I have came across a java code in which I have seen passing this as a parameter of constructor?
What actually this referencing? Like Class Ray{ Smit s = new Smit(this); }
4 Respostas
+ 2
Is it true that if I want to create obj of Smit class from another class that another class must extends Smit class? For working of Smit(this) signature constructor?
+ 1
I know that but passing in this way means what exactly this is referencing here?
+ 1
Can you check one code for me please?