// Inheritance not allowed //public struct ZPoint : XPoint { } public void Ex2_Struct() { XPoint p1 = new XPoint(1, 1); XPoint p2 = new XPoint(2, 2); PassByValue(p2); // pass by value not reference p1 = PassByValue(p2); Console.WriteLine("Distance: {0}", p2.Distance(p1)); }