-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sev pol #97
base: Korotkov_Mihail_Aleksandrovich
Are you sure you want to change the base?
Sev pol #97
Conversation
this._name = name; | ||
this.age = age; | ||
this._sick = isSick; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this._name = name; | |
this.age = age; | |
this._sick = isSick; | |
this.name = name; | |
this.age = age; | |
this.sick = isSick; |
таким образом мы переиспользуем сеттеры - и не будет возможно установить параметры в обход сеттеров и их проверок
@@ -0,0 +1,17 @@ | |||
import { Customer } from "../src/Customer"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
странно, vscode ругается, но линтер проходит, но тут уже ко мне вопросик :)
No description provided.