Skip to content

Commit 44eafe0

Browse files
authored
Relation to Encapsulation: Actually change the code that's supposed to be changed (#112)
1 parent 04c2f2c commit 44eafe0

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)