The compiler will generate an error on 'line 1'
Now of us make the fields of the point private and provide public properties to access them..
Now, let us try to create an instance of the Point without using the new keyword
Here, we have create an instance of Point (pt2), initialized its fields through their accessor properties and then attempted to use it in a Console.WriteLine() method. When we try to compiler the program,the compiler generates an error: