using System; class Point { public double x, y; public Point(double x, double y) { this.x = x; this.y = y; } ~Point() { Console.WriteLine("Destructed {0}", this); } public override string ToString() { return string.Format("({0}, {1})", x, y); } }shows a Point class with a destructor.
| |
Jagger Software Ltd | |
Company # 4070126 | |
VAT # 762 5213 42 |