024 클래스 생성자 (지정생성자, 편의생성자)
생성자 기본값 설정하기 생성자 호출하기 클래스를 설계하고 나서 인스턴스를 만들 때Camp(title: , subtitle: , cardImageUrlStr: , thumbnailImageUrlStr: , reviewScore: , isCertificationAvailable: , campId: , startDate: , endDate: , isOlineCamp: , locationUrl: , latitude: , longitude: , status: , generation: , priority: , isPublic: , period: , price: , discountedPrice: )값을 입력하기 위해서 이렇게 긴 코드를 작성해야한다. 자동 입력이 되어 입력은 편하다고 하더라도 가독성이 떨어진다는 단점..
2025. 3. 8.