Added correct syntax for c++ inheritance.

[more] Minor indent correction at namespaces intro example
Merge pull request #787 from eternalthinker/patch-1

Added correct syntax for c++ inheritance.