static void Main(string[] args) { Base b = new Base(); DerivedA a = new DerivedA(); DerivedB bd = new DerivedB(); b.Debug(); a.Debug(); bd.Debug(); }