Object Adaptor1 [어댑터 패턴] Class Adaptor vs. Object Adaptor [어댑터 패턴] Class Adaptor vs. Object Adaptor Class Adapter uses inheritance and can only wrap a class. It cannot wrap an interface since by definition it must derive from some base class. Object Adapter uses composition and can wrap classes or interfaces, or both. It can do this since it contains, as a private, encapsulated member, the class or interface object instance it wraps. - 클래스 어댑터는 상속(Inhe.. 2021. 3. 27. 이전 1 다음