school/cs235/lab09/node.cpp
2016-04-06 20:46:10 -07:00

16 lines
240 B
C++

#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;
}