yefj
Advanced Member level 5
Hello,when i create and object of type class i need to write as shown bellow.
I understand the left side of the line
but why we duplicate the same name "new TestClass1();"
What will happen if i will do?
Thanks.
I understand the left side of the line
Code:
TestClass1 f = new TestClass1();
but why we duplicate the same name "new TestClass1();"
What will happen if i will do?
Code:
TestClass1 f = new TestClass2();
Thanks.