public static division operator /(division obj1, division obj2) { division div = new division(); div.x = obj1.x / obj2.x; div.y = obj1.y / obj2.y; return(div); }
static void Main(string[] args) { division c1 = new division(15, 27); division c2 = new division(3, 9); division result = c1 / c2; Console.WriteLine(result); Console.ReadKey(); }