diff options
author | Cameron Wood <github@cbwood.net> | 2015-10-11 03:41:20 -0400 |
---|---|---|
committer | Cameron Wood <github@cbwood.net> | 2015-10-11 03:41:20 -0400 |
commit | e32eb715ef41e411da0a91b40e6e35f150a9c2eb (patch) | |
tree | 5ae9044c7f89c6a60124356a0b3cebf1d190758b /c++.html.markdown | |
parent | 8592f261996855000d3d2241989ea5563c1bf8ec (diff) |
[C++/en] Small inheritance clarification
Clarified that private members are inherited but are not directly
accessible
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); |