Merge pull request #787 from eternalthinker/patch-1

Added correct syntax for c++ inheritance.
This commit is contained in:
Nami-Doc 2014-09-24 09:48:29 +02:00
commit 66f62c63ca

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;