1
0
Fork 0
school/cs235/final/RedBlackTreeFactory.cpp

21 Zeilen
604 B
C++

#include "RedBlackTreeFactory.h"
#include "br_tree.h"
//You may add #include statements here
/*
You will MODIFY THIS DOCUMENT.
*/
//=======================================================================================
/*
getRedBlackTree()
Creates and returns an object whose class extends RedBlackTreeInterface.
This should be an object of a class you have created.
Example: If you made a class called "RedBlackTree", you might say, "return new RedBlackTree();".
*/
RedBlackTreeInterface * RedBlackTreeFactory::getRedBlackTree()
{
return new br_tree();//Modify this line
}