QuestionT.cpp

URL: http://147.64.242.52/~bennett/class/cmsc2040/fall2026/notes/inherit/code/QuestionT.cpp
 
#include <iostream>
#include "QuestionT.h"

using namespace std;

std::string QuestionT::GetType()const {
   return type;
}

void QuestionT::SetType(std::string newType){
   type = newType;
}

/*
void QuestionT::AskQuestion() const {
   cout << " In QuestionT, I really don't have a question" << endl;
}
*/


TFQuestionT::TFQuestionT() {
    SetType("True-False");
}

void TFQuestionT::AskQuestion() const { 
    cout << localQuestion << endl;
}

void TFQuestionT::SetQuestion(string question) {
    localQuestion = question;
}