Skip to content

Commit 91058b0

Browse files
committed
Classes
1 parent 05e121c commit 91058b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

greeter.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
class Student {
2+
fullName: string;
3+
constructor(public firstName: string, public middleInitial: string, public lastName: string) {
4+
this.fullName = firstName + ' ' + middleInitial + ' ' + lastName;
5+
}
6+
}
7+
18
interface Person {
29
firstName: string;
310
lastName: string;

0 commit comments

Comments
 (0)