Question: using c++ language divide program to main.cpp,hunter.h,hunter.cpp need use g++ -o count hunter.cpp main.cpp in terminal to compile The code for the animal is given

using c++ language
divide program to main.cpp,hunter.h,hunter.cpp
need use "g++ -o count hunter.cpp main.cpp "in terminal to compile
The code for the animal is given below:



Part 2 - Inheritance 2-1 Define and implement a class named hunter. A hunter object represents an animal that hunts for its food in the wild The hunter class must be defined by inheriting from the animal class. The hunter class has the following public constructors and behaviours: hunter(string aSpecies); void record_kill(string kill); // add a new kill to the end of the hunter's list of kills int numberOfKills // create a hunter of the given species // how many kills have been recorded // implement ONE of the following string get killsO; // return an array of all kills by this hunter vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
