C# Class Composite.Leaf

The 'Leaf' class
Inheritance: Component
Show file Open project: mravinale/gof-patterns Class Usage Examples

Public Methods

Method Description
Add ( Component c ) : void
Display ( int depth ) : void
Leaf ( string name ) : System
Remove ( Component c ) : void

Method Details

Add() public method

public Add ( Component c ) : void
c Component
return void

Display() public method

public Display ( int depth ) : void
depth int
return void

Leaf() public method

public Leaf ( string name ) : System
name string
return System

Remove() public method

public Remove ( Component c ) : void
c Component
return void