Skip to content

도전 과제 01 구현#6

Merged
Roy-wonji merged 4 commits intodevelopfrom
Feature/challenge-01
Aug 25, 2025
Merged

도전 과제 01 구현#6
Roy-wonji merged 4 commits intodevelopfrom
Feature/challenge-01

Conversation

@Roy-wonji
Copy link
Collaborator

✨ 작업 내용

  • 자동차’ 라는 개념을 가지고 객체 지향 설계
  • 프로퍼티는 브랜드, 모델, 연식은 String, 엔진은 Engine 커스텀 타입으로 설계
  • 동작 추가, 적절한 접근제어자 명시적으로 지정
  • Car를 상속한 ElectricCar 설계
  • Car 를 상속한 HybridCar 설계
  • HybridCar는 switchEngine(to:)를 통해 엔진을 런타임에 변경가능
  • 상속과 프로토콜의 장단점, 차이를 주석으로 작성

Copy link

@minneee minneee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 ~

Comment on lines +11 to +14
var brand: String
var model: String
var year: String
var engine: Engine
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

상태에도 접근 제어자 명시해주면 좋을 것 같습니다! (문제 요구사항)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수정 했습니다

@Roy-wonji Roy-wonji merged commit 8cd28c8 into develop Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants