Question: in C++ Declare a class Dragon. The class should contain appropriately typed data fields for name,age,size, cave and collection of previous victims, include prototypes for
in C++ Declare a class Dragon. The class should contain appropriately typed data fields for name,age,size, cave and collection of previous victims, include prototypes for three member functions of Dragon. The first being an appropriate constructor. The second displaying the name, age ,size and cave, and the third displaying the victim history. Write the implementation of the constructor and the personal details function, but NOT of the victim history function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
