What is the difference between defining an object of class "Person" by using its default constructor following two different ways:
Method 1:
Person person = Person();
Method 2:
Person person();
When I initialized some variables inside the default constructor and tried to access those variables or set those variables by get/set methods in the main routine, I got compilation error in Method 2, but Method 1 works.
Thanks.