C# Class CompositePattern.Component

组成
Show file Open project: moustafafarhat/CSharp-Code-Examples Class Usage Examples

Public Methods

Method Description
Add ( Component c ) : void
IsComposite ( ) : bool
Operation ( ) : void
Remove ( Component c ) : void

Protected Methods

Method Description
Component ( )

Method Details

Add() public abstract method

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

Component() protected method

protected Component ( )

IsComposite() public abstract method

public abstract IsComposite ( ) : bool
return bool

Operation() public abstract method

public abstract Operation ( ) : void
return void

Remove() public abstract method

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