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

20 lines
297 B
C++

#include "node.h"
node::node(int data): data(data), height(0), right(NULL), left(NULL) {}
int node::getData() {
return data;
}
NodeInterface* node::getLeftChild() {
return left;
}
NodeInterface* node::getRightChild() {
return right;
}
int node::getHeight() {
return height;
}