Question: 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
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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
