Answered step by step
Verified Expert Solution
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
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
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