Skip to content

(박*희,강의노트14장) #145

@phs070900

Description

@phs070900

교수님, 예시 코드의 Vector 클래스 생성자(init)를 보면 입력받은 데이터를 리스트가 아닌 불변(immutable) 객체인 '튜플'로 변환하여 self.components에 저장하고 있습니다. 이것이 객체 지향 프로그래밍에서 내부 데이터의 무결성을 지키고 부수 효과를 방지하기 위한 의도적인 설계 기법인지 궁금합니다.

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