mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Add missing semicolons.
This commit is contained in:
parent
462ac89217
commit
3db1042157
@ -288,7 +288,7 @@ public:
|
||||
|
||||
// Functions can also be defined inside the class body.
|
||||
// Functions defined as such are automatically inlined.
|
||||
void bark() const { std::cout << name << " barks!\n" }
|
||||
void bark() const { std::cout << name << " barks!\n"; }
|
||||
|
||||
// Along with constructors, C++ provides destructors.
|
||||
// These are called when an object is deleted or falls out of scope.
|
||||
@ -341,7 +341,7 @@ int main() {
|
||||
// This class inherits everything public and protected from the Dog class
|
||||
class OwnedDog : public Dog {
|
||||
|
||||
void setOwner(const std::string& dogsOwner)
|
||||
void setOwner(const std::string& dogsOwner);
|
||||
|
||||
// Override the behavior of the print function for all OwnedDogs. See
|
||||
// http://en.wikipedia.org/wiki/Polymorphism_(computer_science)#Subtyping
|
||||
|
Loading…
Reference in New Issue
Block a user