Skip to content

Dev#1

Open
yu-sit wants to merge 2 commits intomasterfrom
dev
Open

Dev#1
yu-sit wants to merge 2 commits intomasterfrom
dev

Conversation

@yu-sit
Copy link
Owner

@yu-sit yu-sit commented Jul 2, 2024

СРОЧНО!!!

Добрый день!
исправил замечание, теперь ПР сделан в рамках моего репозитория, с ветки dev в ветку master.
Спасибо за комментарий!

Огромная просьба!!!
Посмотрите, пожалуйста, данный ПР пораньше, я все еще надеюсь успеть сдать проект по 4 спринту завтра до 23:59.
Иначе у меня учеба превратится в тыкву)
Спасибо за понимание!


}

public Vehicle announceTheChampion() {

Choose a reason for hiding this comment

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

по сути это геттер, поэтому лучше и проще будет написать getChampion, обычно артикли (the) в неймингах не используются



class Race {
public Vehicle theChampion;

Choose a reason for hiding this comment

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

Т.к. для переменной есть геттер, то лучше сделать её приватной

Comment on lines +50 to +51
private String name;
private int maxSpeed;

Choose a reason for hiding this comment

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

Чтобы меньше кода писать можно геттеры удалить и сделать так:

Suggested change
private String name;
private int maxSpeed;
public final String name;
public final int maxSpeed;

Copy link
Owner Author

Choose a reason for hiding this comment

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

Артур, спасибо!!!

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