diff --git a/README.md b/README.md index 4850edf..f4c83da 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ import { CourseId } from "./CourseId"; import { CourseTitle } from "./CourseTitle"; export class Course { - constructor(readonly courseId: CourseId, readonly courseTitle: CourseTitle) {} + constructor(public courseId: CourseId, public courseTitle: CourseTitle) {} updateTitle(newCourseTitle: CourseTitle): void { this.courseTitle = newCourseTitle; @@ -65,7 +65,7 @@ import { CourseId } from "./CourseId"; import { CourseTitle } from "./CourseTitle"; export class Course { - constructor(readonly courseId: CourseId, readonly courseTitle: CourseTitle) {} + constructor(public courseId: CourseId, public courseTitle: CourseTitle) {} updateTitle(newCourseTitle: CourseTitle): void { this.courseTitle = newCourseTitle;