Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.

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.

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

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

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.

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

Recommended Textbook for

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions