Question: [C++ ] Create a Human class with the following features: Each Human needs a name, an age, and some phrase that they say. Each Human

[C++ ]

Create a Human class with the following features:

  • Each Human needs a name, an age, and some phrase that they say.

  • Each Human needs appropriate getters and setters for all attributes.

  • For every interaction with this human, increment the age by 1 year.

  • Default constructor with no arguments.

  • Constructor that takes name, age, and phrase arguments.

Human Source Code

+The Human class must to be defined in a header file with no implementation. Additionally, create an implementation file with all of the Human implementation code.

Driver

+Create a driver to demonstrate all of the features of your Human class. The driver is the only class with main().

+The driver must create a dynamic array of Human Objects of some user defined size. This requires prompting the user for a number of Humans to create.

+Be sure to iterate through your array of Humans. Interact with every Human object. Demonstrate ALL features of the Human class.

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!