Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

2. Describe how technology can impact intercultural interaction.

Answered: 1 week ago

Question

7. Define cultural space.

Answered: 1 week ago