Question: Create a class called Orc.. The orc class will have the following Properties String Name String Species (static) = ORC Behaviours Constructor that takes in

Create a class called Orc.. The orc class will have the following

Properties

String Name

String Species (static) = ORC

Behaviours

Constructor that takes in a name.

A get function to return the name

BattleCry() When called, it will return a string that contains a battlecry the orc performs when it is spawned. The battlecry must include the name of the orc, and the race. Ex: I am (name), and I am a proud (Species)!, Static warcry()

Returns a grunt sound.

Create a main function to test the functionality of the orc class.

Create 1 orc object pointer.

Using the pointer, create an orc object and assign it to the pointer and perform a battlecry.

Create a total of 3 differently named orcs and perform a battlecry on each of them.

At the end, perform a warcry. Ensure your pointer is properly managed.

Submission Upload ONLY your .cpp/.h file(s)

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!