abstract5 Abstract Factory Pattern - 생성, 팩토리 추상화와 제품군 생성 추상화 | 추상 팩토리 패턴 [Design pattern] 디자인 패턴 Abstract Factory 다양한 구성 요소 별로 객체의 집합 생성 같은 종류의 여러 개의 객체를 생성할 수 있는 클래스를 생성 생성 군들을 하나에 모아놓고 팩토리(Factory) 중에서 선택하게 하는 패턴 관련있는 서브 클래스를 묶어서 팩토리 클래스를 만들고, 이들 조건에 따라 객체를 생성하는 패턴 여러 개의 클래스를 하나의 추상 클래스로 묶어 한번에 교체할 수 있는 패턴 ex) 제품군 (A family of products) GUI widgets : window, scroll bar, button, text field .. Pizza ingredients : dough, sauce, cheese ... - 제품, 운영체제, 회사별로 유사한 제품이지만 지원하는 기능에 차이가 있을 경우, 기능별로 통.. 2021. 12. 26. Composite Pattern Example code, Designing Menus with Composite .java | Design Pattern디자인 패턴 Designing Menus with Composite Waitress Waitress는 MenuComponent 인터페이스/추상 클래스 를 통해 Menu 와 Menuitems에 access 한다. MenuComponent Menu 와 MenuItem 의 interface를 나타낸다. abstract class 를 통해 클래스 내에 원하는 기본 메소드 구현 제공 공통연산과 Menu 조작 연산으로 구성 공통연산 : getName, getDescription, getPrice, print 조작연산 : add, remove, getChild MenuItem Both Menu and Menus override print() Menu we’ll use the getName() andngetDescription().. 2021. 10. 27. [Kotlin] Fast campus 강의 안드로이드 앱 개발 (코틀린) data class, Object data class 상속 불가, data 처리하기 위해 특화된 클래스data class 이름 () 안에 필드들을 정의할 수 있다. {} 안에 멤버필드나 메소드를 정의할 수도 있다. data 클래스도 멀티리턴처럼 보일 수 있다. (Destructuring Declarations) 가장 유용한 것은 copy() 함수 일반 클래스와 데이터 클래스 정의 class A { var name : String = "clas A" var power : Int = 0 } data class DataA(var name : String = "이름없음",var level : Int) { var jop : String ="" // 연산자 오버로딩에 data class 많이 사용 operator fun plus (d : DataA.. 2021. 10. 21. [Kotlin] Fast campus 강의 안드로이드 앱 개발 코틀린 / 클래스(class), 객체지향(OOP), 다형성 (polymorphism) 안드로이드 앱 개발 코틀린편. 객체지향 에서는 클래스의 기본 다형성 Abstract 추상 , Interface DataClass Object 에 대해서 다룰 것이다. 객체지향프로그래밍에서 interface와 abstract 를 이용한 다형성 프로그래밍이 중요하다. 2021.10.02 - [소프트웨어공학/디자인 패턴] - [디자인 패턴] 설계 원칙 [디자인 패턴] 설계 원칙 설계 원칙 기본 원칙들 Encapsulation, Abstraction Inheritance, Polymorphism Association/Aggregation/Composition 객체 : 상태와 행동으로 나타낸다. 객체지향 현실 세계의 개념(concepts or things)을.. javapp.tistory.com 디자인 패턴을 알.. 2021. 10. 18. [Design Pattern] 디자인 패턴 / UML Base .java 2021.09 디자인 패턴 강의 정리 UML A standard language for writing software blueprints 어휘 (Vocabularies) 세 종류의 Building block 으로 구성된다. - Things , Relationships, Diagrams Things Structural things 모델의 정적 부분 (개념적 요소)을 나타냄 interface, class, Behavioral things 모델의 동적 부분 (행동)을 나타냄 interaction (객체간 messaging), Grouping things organizational part package and its variations Annotational things explanatory part note.. 2021. 9. 11. 이전 1 다음