-
Notifications
You must be signed in to change notification settings - Fork 0
Core work9 #21
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
base: master
Are you sure you want to change the base?
Core work9 #21
Conversation
# Conflicts: # src/ru/skypro/Main.java
# Conflicts: # src/ru/skypro/Main.java
src/ru/skypro/products/Recept.java
Outdated
|
|
||
| public class Recept { | ||
|
|
||
| Map<Tovar,Integer> MnozhestvoProductov = new HashMap<>(); |
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.
Названия переменных всегда пишутся с маленькой буквы в camelCase
И лучше всегда выбирать private в качестве модификатора доступа если только мы как то не работаем с этим полем в классах потомках
src/ru/skypro/products/Recept.java
Outdated
|
|
||
| Map<Tovar,Integer> MnozhestvoProductov = new HashMap<>(); | ||
| private final String name; | ||
| public Integer SumCostTovar(){ |
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.
названия методов тоже всегда пишутся в camelCase
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.