Guest User

Untitled

a guest
Oct 26th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public void print() {
  2. for (Graphic graphic : childGraphics) {
  3. graphic.print();
  4. }
  5. }
  6.  
  7. public override void Display(int depth)
  8. {
  9. Console.WriteLine(new String('-', depth) + name);
  10.  
  11. // Recursively display child nodes
  12. foreach (Component component in children)
  13. {
  14. component.Display(depth + 2);
  15. }
  16. }
Add Comment
Please, Sign In to add comment