Skip to content

First commit - #1

Open
Vadim-Li-V wants to merge 4 commits into
mainfrom
dev
Open

Vadim-Li-V wants to merge 4 commits into
mainfrom
dev

Conversation

@Vadim-Li-V

Copy link
Copy Markdown
Owner

No description provided.

Comment thread src/main/java/Main.java Outdated
Comment on lines +3 to +13
class Car
{
String name;
int speed;

public Car(String name, int speed)
{
this.name = name;
this.speed = speed;
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Классы в джаве принято писать объявлять в разных файлах.

Comment thread src/main/java/Main.java

class Race
{
String leader = "";

Copy link
Copy Markdown

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