school/cs235/lab05/Factory.h

22 lines
629 B
C
Raw Normal View History

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