summaryrefslogtreecommitdiffhomepage
path: root/c++.html.markdown
diff options
context:
space:
mode:
authorSean Corrales <scorrales@usft.com>2015-10-14 14:52:37 -0500
committerSean Corrales <scorrales@usft.com>2015-10-14 14:52:37 -0500
commitfcc5086cfcac4e1efc365c16617aaf7ff9d86f80 (patch)
treeda683653842a5ae37177d191a51833f58e0b9a41 /c++.html.markdown
parentc357be714fe39c8c97e4d1ac12b3cdfb673d1e1e (diff)
parent8ec133b29595b8dac963eafa63ab0c479e37a3c1 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'c++.html.markdown')
-rw-r--r--c++.html.markdown4
1 files changed, 3 insertions, 1 deletions
diff --git a/c++.html.markdown b/c++.html.markdown
index 8ee964ca..2bee51dc 100644
--- a/c++.html.markdown
+++ b/c++.html.markdown
@@ -264,7 +264,7 @@ string retVal = tempObjectFun();
// What happens in the second line is actually:
// - a string object is returned from tempObjectFun
-// - a new string is constructed with the returned object as arugment to the
+// - a new string is constructed with the returned object as argument to the
// constructor
// - the returned object is destroyed
// The returned object is called a temporary object. Temporary objects are
@@ -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);