/* student.cpp
 *
 * This is the cpp file for the Student data type.
 *
 */

#include "student.h"  // the header for the student class

// First constructor
// This sets up the elements of student.
Student::Student()
{
  // Initialize name to be empty and number to be -1
  number = -1;
  name = "";
}

// The destructor for the Student class.
// We didn't allocate any memory using the "new" keyword, so we
// don't have anything to do here.
Student::~Student()
{
}

// Accessors for the student number
long int Student::getNumber() const
{
  return number;
}

void Student::setNumber(long int newnumber)
{
  number = newnumber;
}

// Accessors for the student name
string Student::getName() const
{
  return name;
}

void Student::setName(string newname)
{
  name = newname;
}




