Skip to content

HW#5_Trupkina#21

Open
SvetlanaTr wants to merge 6 commits intomasterfrom
HW#5_Trupkina
Open

HW#5_Trupkina#21
SvetlanaTr wants to merge 6 commits intomasterfrom
HW#5_Trupkina

Conversation

@SvetlanaTr
Copy link
Collaborator

No description provided.

Comment on lines +214 to +217
// Additional task*
if (this.constructor === Company2) {//we must not allow creation of instance of abstract class
throw new Error("You cannot create an instance of Abstract Class");
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@DmitryKorolDevPro is it correct?

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.

1 participant