school/cs235/lab09/Factory.cpp

21 lines
518 B
C++
Raw Normal View History

2016-04-06 20:46:10 -07:00
#include "Factory.h"
#include "bst.h"
//You may add #include statements here
/*
You will MODIFY THIS DOCUMENT.
*/
//=======================================================================================
/*
getBST()
Creates and returns an object whose class extends BSTInterface.
This should be an object of a class you have created.
Example: If you made a class called "BST", you might say, "return new BST();".
*/
BSTInterface * Factory::getBST()
{
return new bst();//Modify this line
}