jeudi 20 avril 2017

Is it correct to create a reference variable of a class inside the same class ? How is it different from a normal object creation using new keyword?

Class Test {
   Test variable1 = null;
   Test variable2 = new Test();
}

Can we perform similar functions with both variables ?






Comments
0 Comments

0 commentaires:

Enregistrer un commentaire