Skip to content

Conversation

@timur-muminov
Copy link

No description provided.

print("Thanks for using");
}

private void sendMessageToChosenChanel(int chosenChannel) {
Copy link
Owner

Choose a reason for hiding this comment

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

можно было через полиморфизм

public CustomString() {}

public char[] getChars() {
return chars;
Copy link
Owner

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