#include "Node.h"

 

Node::Node( int d )

{

  data = d;

}

 

int Node::getdata()

{

  return data;

}

 

void Node::setnext( Node* n )

{

  next = n;

}

 

Node::~Node()

{

}

 

Node* Node::getnext()

{

  return next;

}