1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-22 22:33:29 +02:00

Added correct syntax for c++ inheritance.

[more] Minor indent correction at namespaces intro example
This commit is contained in:
eternalthinker
2014-09-24 08:42:21 +05:30
parent b6ba516743
commit 7b95a1e921

View File

@@ -266,10 +266,9 @@ int main () {
//C++ Class inheritance
class German_Sheperd
class German_Sheperd : public Doggie
{
//This class now inherits everything public and protected from Doggie class
Doggie d_dog;
//Good practice to put d_ in front of datatypes in classes
std::string d_type;