diff options
author | Levi Bostian <levi.bostian@gmail.com> | 2015-10-12 23:19:55 -0500 |
---|---|---|
committer | Levi Bostian <levi.bostian@gmail.com> | 2015-10-12 23:19:55 -0500 |
commit | 02dc2ef90926e10dffaf591249aad1d26ef43d9e (patch) | |
tree | 65d10f39d9cf34195c2582212aef71ea3712392b /c++.html.markdown | |
parent | c15be9b0131ac5e80e66d5c4158fed0a29f749cb (diff) | |
parent | e32eb715ef41e411da0a91b40e6e35f150a9c2eb (diff) |
Merge pull request #1469 from Alters/master
[C++/en] Small inheritance clarification
Diffstat (limited to 'c++.html.markdown')
-rw-r--r-- | c++.html.markdown | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/c++.html.markdown b/c++.html.markdown index 6f4d0562..2bee51dc 100644 --- a/c++.html.markdown +++ b/c++.html.markdown @@ -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); |