C# 클래스 Composite.Component

상속: Composite
파일 보기 프로젝트 열기: mravinale/gof-patterns 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
name string

공개 메소드들

메소드 설명
Add ( Component c ) : void
Component ( string name ) : System
Display ( int depth ) : void
Remove ( Component c ) : void

메소드 상세

Add() 공개 추상적인 메소드

public abstract Add ( Component c ) : void
c Component
리턴 void

Component() 공개 메소드

public Component ( string name ) : System
name string
리턴 System

Display() 공개 추상적인 메소드

public abstract Display ( int depth ) : void
depth int
리턴 void

Remove() 공개 추상적인 메소드

public abstract Remove ( Component c ) : void
c Component
리턴 void

프로퍼티 상세

name 보호되어 있는 프로퍼티

protected string name
리턴 string