Question: C++ project: For this project, you will need to build one custom class that can be used to display as many holiday greeting cards as

C++ project:

For this project, you will need to build one custom class that can be used to display as many holiday greeting cards as needed, for any holiday. Build one class and make many objects of that class--one for each greeting card.

Deliverables:

Do not create a class for each holiday. The idea is to create one class that will work for any holiday.

Your class must include:

Data

The class must hold a greeting card number and several strings: the name of the person getting the greeting card, the name of the person sending the greeting card, the greeting card message and the occasion (Valentine's Day, Birthday, etc). You can decide how to store these, but you must have at least one private variable that is used more more than one function. (5 points)

Functions

Constructors: Your class must have a constructor without parameters and another constructor that accepts parameters to set at least one private variable.

Your class must have one or more mutator (setter) function with parameters to set private variables (2 points).

Your class must have one or more accessor (getter) function to return private variables (3 points).

You will need a function to display the greeting card with all of its data elements. (5 points)

The main function should create an object of your greeting card class for a holiday greeting card (you choose the holiday) that uses one of the constructors and functions. Then, create another object of the greeting card class for another holiday card (different holiday) that uses the other constructor (not previously used) as well as its functions.

For this project, you can make up your own greeting card message to send to a function of your greeting card class, or click on the above image for some ideas.

(5 points)

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!