#include "HuntingSchool.h" #include HuntingSchool* HuntingSchool::single = 0; bool HuntingSchool::takeExam() { //50% Chans return (rand() % 2 > 0)? true : false; } HuntingSchool::~HuntingSchool() { delete single; single = 0; } HuntingSchool* HuntingSchool::getInstance() { if(single == 0) single = new HuntingSchool; return single; } std::string HuntingSchool::whereAmI() { return "HuntingSchool"; } HuntingSchool::HuntingSchool() { }