Skip to content

Conversation

@zuiweida
Copy link

@zuiweida zuiweida commented May 7, 2018

ex 12 lahendus.

@agoluberg
Copy link
Contributor

Siin soovitan kohe mõned asjad ära parandada. Näiteks enum CargoType võiks omada välja nimega dangerLevel. Ehk siis iga tüübiga on kaasa märgitud mingi oht. Sellisel juhul ei pea Cargo sees tsükliga läbi käima CargoType objekte - pigem saab kohe kasutada cargoType.getDangerLevel().

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