school/cs235/lab09/node.cpp

16 lines
240 B
C++
Raw Normal View History

2016-04-06 20:46:10 -07:00
#include "node.h"
node::node(int data): data(data), right(NULL), left(NULL) {}
int node::getData() {
return data;
}
NodeInterface* node::getLeftChild() {
return left;
}
NodeInterface* node::getRightChild() {
return right;
}