Skip to content

Commit 030a67f

Browse files
author
Jens Detmer
committed
Update TypeScript in 5 minutes.md
1 parent 09eb26d commit 030a67f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pages/tutorials/TypeScript in 5 minutes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ Notice that classes and interfaces play well together, letting the programmer de
118118
Also of note, the use of `public` on arguments to the constructor is a shorthand that allows us to automatically create properties with that name.
119119

120120
```ts
121-
class Student {
121+
class Student implements Person {
122122
fullName: string;
123-
constructor(public firstName, public middleInitial, public lastName) {
123+
constructor(public firstName: string, public middleInitial: string, public lastName: string) {
124124
this.fullName = firstName + " " + middleInitial + " " + lastName;
125125
}
126126
}

0 commit comments

Comments
 (0)