Question: I have this table that I need to turn into a code. it should be written in C++. and separated into .h file and .cpp
I have this table that I need to turn into a code. it should be written in C++. and separated into .h file and .cpp file.
setText: texts mutator.
getText: texts accessor.
display: shows the questions text.
Question: initializes text as an empty string
Question(string): initialize text with the constructor argument. 
Question class Create a class for a question. Question -text: string -points: int +setText(string): void +getText() const: string +setPoints(int): void +getPoints() const: int +display() const: void +Question() +Question(string) For information about members which are not described here, see Assignment 3's description. The private variable points stores how many points are assigned to the question. The default and minimum value is 1. This variable accessor and mutator are getPoints and setPoints, respectively
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
