Question
I have the main files done just need help with the following: Animal.h #pragma once #include #include #include using namespace std; class Animal { string
I have the main files done just need help with the following:
Animal.h
#pragma once #include
using namespace std;
class Animal { string name; int age;
public:
Animal() { cout
void display(const vector
}
string getName() { return name; }
void setName(string name) { this->name = name; }
int getAge() { return age; }
void setAge(int age) { this->age = age; }
~Animal() { cout
void feed() { cout
};
Dog.h
#ifndef LA4_Dog_h #define LA4_Dog_h
#include
using namespace std;
class Dog : public Animal{ public: Dog(){ cout
#endif
display.h
#include "Animal.h" void display (const vector
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started