C # program for the above approach
using System ; using System . Collections ; using System . Collections . Generic ; class GFG { public class Point { public int x , y ; public Point ( int x , int y ) { this . x = x ; this . y = y ; } }