Question: Hi I need some C++ Code for these questions. Please help! Declare a class Troll. The class should contain appropriately typed data fields for first

Hi I need some C++ Code for these questions. Please help!

Hi I need some C++ Code for these questions. Please help! Declare

Declare a class Troll. The class should contain appropriately typed data fields for first name, last name, age, size, bridge and a collection of previous victims. Include prototypes for three member functions of Troll, the first being an appropriate constructor, the second displaying the name, age, size and bridge, 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. 3) Write a function template StarThem to take an object of arbitrary type and an integer, and display the object with the integer number of stars before and after the object display is called. State what changes would need to be made to use this with a Mouse from question B2 and a Troll from question B3. Write definitions but not implementations for those changes, and show how StarThem could then be applied to display a Mouse and a Troll 4)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!