File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import { CourseId } from "./CourseId";
30
30
import { CourseTitle } from " ./CourseTitle" ;
31
31
32
32
export class Course {
33
- constructor (readonly courseId : CourseId , readonly courseTitle : CourseTitle ) {}
33
+ constructor (public courseId : CourseId , public courseTitle : CourseTitle ) {}
34
34
35
35
updateTitle(newCourseTitle : CourseTitle ): void {
36
36
this .courseTitle = newCourseTitle ;
@@ -65,7 +65,7 @@ import { CourseId } from "./CourseId";
65
65
import { CourseTitle } from " ./CourseTitle" ;
66
66
67
67
export class Course {
68
- constructor (readonly courseId : CourseId , readonly courseTitle : CourseTitle ) {}
68
+ constructor (public courseId : CourseId , public courseTitle : CourseTitle ) {}
69
69
70
70
updateTitle(newCourseTitle : CourseTitle ): void {
71
71
this .courseTitle = newCourseTitle ;
You can’t perform that action at this time.
0 commit comments