Skip to content

Create 2018EX12.rst#95

Open
U7a1B8kl wants to merge 2 commits intotaltech-coding:masterfrom
U7a1B8kl:patch-1
Open

Create 2018EX12.rst#95
U7a1B8kl wants to merge 2 commits intotaltech-coding:masterfrom
U7a1B8kl:patch-1

Conversation

@U7a1B8kl
Copy link
Copy Markdown

@U7a1B8kl U7a1B8kl commented May 7, 2018

ex 12 lahendus.

@agoluberg
Copy link
Copy Markdown
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