Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void print() {
- for (Graphic graphic : childGraphics) {
- graphic.print();
- }
- }
- public override void Display(int depth)
- {
- Console.WriteLine(new String('-', depth) + name);
- // Recursively display child nodes
- foreach (Component component in children)
- {
- component.Display(depth + 2);
- }
- }
Add Comment
Please, Sign In to add comment