static void Main(string[] args) { Composite comp = new Composite(); comp.Text = "first"; Leaf leaf = new Leaf(); comp.add(leaf); comp.draw(); }