Replies: 2 comments
-
|
상속이란 기존 클래스에 기능을 추가하거나 재정의하여 새로운 클래스를 정의하는 것을 의미한다. 상속의 단점들에는 다음의 것들이 있다.
하지만 상속은 코드를 재사용할 뿐만 아니라 부모와 자식의 행동이 호환되는 다형적인 계층 구조를 표현할 수 있다는 장점이 있다. 조합은 객체 간의 의존성이 런타임에 결정되므로 결합도가 낮고, |
Beta Was this translation helpful? Give feedback.
0 replies
-
상속장점
단점
조합장점
단점
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
글쎄요 멀까요?
Beta Was this translation helpful? Give feedback.
All reactions