using System;
namespace Form
{
class Point
public int x; // 'public' is an access modifier
public int y;
}
class EntryPoint
static void Main()
Point point = new Point(); // new instance of the class created
point.x = 5; // use of '.' operator for property access + value asssignment
point.y = 3;
System.Console.WriteLine(point.x);
System.Console.WriteLine(point.y);
// when you use the 'new' jeyword you are creating a new instance of the given
// class (object). this process is called instantiation.
// the '.' operator gives you access to all members of a given class.
// members of the class are all of its fields, properties, methods, and
// everything else that defines it.