public class Point { public int x, y; public Point(int x, int y) { this.x = x; this.y = y; } } public class Point3D: Point { public int z; public Point3D(int x, int y, int z): base(x, y) { this.z = z; } } public class BaseClasses{ public static void Main() { Point a = new Point(10, 20); Point b = new Point3D(10, 20, 30); } }
By viewing downloads associated with this article you agree to the Terms of use and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
Old Japanese Man Creates Amazing Art Using Excel (Wait, Excel?)