adding cs235
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include "Factory.h"
|
||||
#include "station.h"
|
||||
//You may add #include statments here
|
||||
using namespace std;
|
||||
|
||||
/*
|
||||
Unlike all other documents provided, you may modify this document slightly (but do not change 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();".
|
||||
*/
|
||||
StationInterface* Factory::createStation()
|
||||
{
|
||||
return new station();
|
||||
}
|
||||
//=======================================================================================
|
||||
Reference in New Issue
Block a user