1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-01-17 13:38:38 +01:00

Merge pull request #1469 from Alters/master

[C++/en] Small inheritance clarification
This commit is contained in:
Levi Bostian 2015-10-12 23:19:55 -05:00
commit 02dc2ef909

View File

@ -404,6 +404,8 @@ int main() {
// Inheritance:
// This class inherits everything public and protected from the Dog class
// as well as private but may not directly access private members/methods
// without a public or protected method for doing so
class OwnedDog : public Dog {
void setOwner(const std::string& dogsOwner);