in Method2 why are you creating a new object i.e.
method 2()
{
Abc objabc=new abc();
abc.getdetails();
here i am loosing the value.. set by my parameterized constructor
}
.
The basic rule for the parameterised constuctor is that the no. of objects of class gets created that many no. of copy of variables present inside the class gets initialised.
Here you cann't get the values of variables(using parameterised constructor) using default constructors.
for further visit
this link[
^]
this link[
^]