Frederic G. MARAND 5 роки тому
батько
коміт
c5613fc9ef
1 змінених файлів з 16 додано та 0 видалено
  1. 16 0
      app/developer.ts

+ 16 - 0
app/developer.ts

@@ -0,0 +1,16 @@
+class Developer {
+  department: string;
+  private _title: string;
+
+  get title(): string {
+    return this._title;
+  }
+
+  set title(title: string) {
+    this._title = title.toUpperCase();
+  }
+
+  documentRequirements(requirements: string): void {
+    console.log(requirements);
+  }
+}