// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; namespace E { public class BC { private string s; public BC(string s) { this.s = s; } public void M() { Console.WriteLine(s); } } public class C : BC { public C(string s) : base(s) // send to base class constructor { } } public class Program { public static void Main(string[] args) { C o = new C("ABC"); o.M(); } } }