static void Main(string[] args) { GraphObject a = new GraphObject(); a.DrawSth(); Point b = new Point(); b.DrawSth(); Console.ReadKey(); }