Skip to content

ITEM 19. 상속을 고려해 설계하고 문서화하라. 그러지 않았다면 상속을 금지하라 #36

@dhrdlxl

Description

@dhrdlxl
  1. 재정의 가능한 메서드를 호출하여 의도와는 다르게 동작하는 상속용 클래스를 만들어 상속으로 인해 발생할 수 있는 문제를 확인해봅시다.(책의 예시도 허용)
  2. 상속을 금지하는 클래스를 만들어 봅시다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions