diff --git a/post.ts b/post.ts index 299871c..c0d6e1f 100644 --- a/post.ts +++ b/post.ts @@ -1,3 +1,8 @@ export class Post { constructor(public title: string, public text: string) {} + + getTitle() { + return this.title; + } + }