상속 (Generalization )
더보기
public class Base{
}
public class Test : Base{
}
인터페이스 상속 (Interface Realization)
더보기
public interface Interface {
}
public Class TestA : Interface {
}
집합, 집합 연관( Aggregation ) 관계
더보기
public class Engine{
}
public class Car{
Engine engine;
public Car(Engine eng)
engine = eng;
}
}
합성, 합성 연관 (Composition)
더보기
public class Engine{}
public class Car{
Engine engine;
public CreateEngine(){
engine = new Engine();
}
}
연관 (Directed Association) 관계
public class Test2{
}
public class Test1{
Test2 a;
public Test4 Set(Test2 test){
}
}
연관( association ) 관계
public class Test4{
static public string STR;
}
public AssociationClass{
public void Printf(){
Debug.Log(Test4.STR);
}
}
집합( aggregation ) 관계