Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 05bd50c

Browse files
committed
Removed whitespace
1 parent 0f8feff commit 05bd50c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/Classes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ console.log(howard.name); // error
189189

190190
Notice that while we can't use `name` from outside of `Person`, we can still use it from within an instance method of `Employee` because `Employee` derives from `Person`.
191191

192-
A constructor may also be marked `protected`.
192+
A constructor may also be marked `protected`.
193193
This means that the class cannot be instantiated outside of its containing class, but can be extended. For example,
194194

195195
```ts
@@ -199,7 +199,7 @@ class Person {
199199
}
200200

201201
// Employee can extend Person
202-
class Employee extends Person {
202+
class Employee extends Person {
203203
private department: string;
204204

205205
constructor(name: string, department: string) {

0 commit comments

Comments
 (0)