school/cs235/lab02/Student_Code/Factory.h

24 lines
667 B
C
Raw Normal View History

2016-04-06 20:46:10 -07:00
#pragma once
#include "JosephusInterface.h"
using namespace std;
/*
WARNING: It is expressly forbidden to modify any part of this document, including its name
*/
//=======================================================================================
/*
getGame()
Creates and returns an object whose class extends JosephusInterface.
This should be an object of a class you have created.
Example: If you made a class called "Circle", you might say, "return new Circle();".
*/
class Factory
{
public:
static JosephusInterface * getGame();
};
//=======================================================================================