Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The member data consists of a string for the question a string for the answer an integer for the number of points it is worth.

The member data consists of
a string for the question
a string for the answer
an integer for the number of points it is worth.
It needs to include methods for
the default constructor which initialize the question and answer to "TBD" and the points to 0
some constructor code that will allow objects to be created with three parameters: two strings and a integer (there are a couple of ways to do this, you may choose any way that works).
appropriately named mutators and accessors (sometimes called setters and getters) for ALL data members and,
an overloaded stream insertion operator (<< or putto) the print all the data maintained in the object. This function MAY NOT BE DECLARED as a friend.
Make sure you have both the class declaration (as it would appear in the header file) and the source code (as it would appear in the source file)

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

More Books

Students also viewed these Databases questions

Question

11. List at least five words that might affect readers negatively.

Answered: 1 week ago