// File: classtest_constr.cpp
#include <iostream>
#include "student_constr.h"
using namespace std;

int main()
{
   Student s("First Last");

   cout << "This is the first output of the main function " << endl;

   s.set_no(100);
   s.set_year_of_studies(1);
   s.set_name("NFirst Last");

   int year, no;

   year = s.get_year_of_studies();
   no = s.get_no();
   cout << "\nYear of studies is " << year
        << " for student with no " << no
        << " and name " << s.get_name() << endl;

//////////////////////////////////////////////////////////

         Student scopied1(s); // Student creation
         Student scopied2 = s; // Student creation
//
         scopied2.set_name("NewName");
         scopied1 = scopied2;   // Student assignment
//
         cout << "Just exiting the main function ...." << endl;


   return 0;
}
