Skip to content

Conversation

AlyonaUi
Copy link

@AlyonaUi AlyonaUi commented Oct 3, 2023

No description provided.

}

set age(n: number) {
this._age = n >= 1 && n < 12 ? n : this._age ?? 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Добавляйте выбрасывание exception'a

breed: string;
color: string;

constructor(rabAge: number, rabBreed: string, rabColor: string, public rabName?: string) {
Copy link
Contributor

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.

3 participants