Skip to content

Commit 0e39179

Browse files
committed
Fixed #108
1 parent 90ee55a commit 0e39179

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

module2/04-polymorphism.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ birds_.push_back(std::make_shared<Goose>());
184184
birds_.push_back(std::make_shared<Hen>());
185185
birds_.push_back(std::make_shared<Duck>());
186186

187-
std::cout << birds_[0]->makeSound() << '\n';
188-
std::cout << birds_[1]->makeSound() << '\n';
189-
std::cout << birds_[2]->makeSound() << '\n';
187+
birds_[0]->makeSound();
188+
birds_[1]->makeSound();
189+
birds_[2]->makeSound();
190190
```
191191
<!-- .element: class="fragment fade-in" -->
192192

0 commit comments

Comments
 (0)