Skip to content

Commit e93dc94

Browse files
committed
Relation to Encapsulation: Actually change the code that's supposed to be changed
1 parent e5a2d1a commit e93dc94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/class_extension/relation_to_encapsulation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ class Airplane {
7272

7373
void bookMany(List<String> passengers) {
7474
for (var passenger : passengers) {
75-
bookOne(passenger);
75+
// Only change
76+
this.passengers.add(passenger);
7677
}
7778
}
7879
}

0 commit comments

Comments
 (0)