Question: this is all one code pplease help me asap and please make it correct The Animal class has a default constructor with no parameters. Define

The Animal class has a default constructor with no parameters. Define an overloaded constructor that takes one string parameter and initializes the animals type with the string. Ex: If the input is cow, then the output is: Animal: Undefined Animal: cow using namespace std; class Animal 1 public: Animal(); Animal(string animal Type); void Print(); private: string type; ): Animal:Aanimal() I type = "undefined"; Y" your code goes here */ The Anirnal class has a default constructor with no parameters. Define an overloaded constructor that takes one string pararneter and initializes the anirras fype with the string Ex. If the input is cow, then the output is
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
