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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started