-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lesson5 #6
base: master
Are you sure you want to change the base?
Conversation
case add, get; | ||
} | ||
|
||
protocol AbstractCar { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не нужно добавлять Abstract
{ | ||
switch action { | ||
|
||
case .add where volumeState == .full: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
молодец избавился от вложенности
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
зачем тут пустые строки?
self.brand = brand; | ||
self.year = year; | ||
self.trunkVolume = trunkVolume; | ||
self.engineState = engineState; | ||
self.doorState = doorState; | ||
self.volumeState = volumeState; | ||
self.maxSpeed = maxSpeed; | ||
self.power = power; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
избавляйся от привычки точек с запятыми
No description provided.