Hi All,
Here is small piece of code
Now if i will create a object of it
The statement new
Test() will cause a deafult constructor of the above class to be invoked...
Now what happens in case of parameterised contructor is provided in the class....
eg
If i create a object of this above class
Test1 test1=new Test1(2);
will this will also help in object creation...
This question has been asked 2-3 times and i am not getting any clear cut answer to the question:DOES CONSTRUCTOR CREATE OBJECT OR DOES IT HELP IN THAT???
Thanks in advance...