-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturtle.cpp
28 lines (21 loc) · 1004 Bytes
/
turtle.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/********************************************************************
* Program name: zooTyc *
* Author: John Casillas *
* Date: February 4, 2018 *
* Description: turtle.cpp contains the class definition for the *
* turtle class, inheriting from the animal class. *
********************************************************************/
/****************************************************************************
* class Turtle *
****************************************************************************/
class Turtle : public Animal
{
public:
Turtle(int age, double cost,int numberOfBabies, double baseFoodCost ,double payoff)
:Animal(age, cost, numberOfBabies, baseFoodCost, payoff)
{
}
~Turtle() // Free resources with destructor
{
}
};