comments
This commit is contained in:
parent
f6e6180958
commit
ec1ebcaed6
@ -5,6 +5,7 @@
|
|||||||
#include "animal.h"
|
#include "animal.h"
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
// make the class inherit from animal
|
||||||
class cat: public animal
|
class cat: public animal
|
||||||
{
|
{
|
||||||
// include the animal constructor
|
// include the animal constructor
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#include "animal.h"
|
#include "animal.h"
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
// make the class inherit from animal
|
||||||
class dog: public animal
|
class dog: public animal
|
||||||
{
|
{
|
||||||
// include the animal constructor
|
// include the animal constructor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user