//NG JING ER
//PROGRAM 3.6

#include <iostream>
#include <string>
using namespace std;

class Student
{
	private:
		string name;
	public:
		Student() { name = "";}
		Student(string aName) {name=aName;}
		~Student ()
		{ cout<<"The object has been destroyed"<<endl;}
		
		string getName() const {return name;}
		void setName(string aName) {name=aName;}
};
int main ()
{
	Student student ("Siti Aminah");
	Student s1("Ramlee Puteh");
	Student s2("Ahmad Mahmood");
	Student s3;
	 
	cout<<"Student's name: "<<s2.getName()<<endl;
	s3.setName("Mustafa Kamal");
	s2.setName(s1.getName());
	
	return 0;
}
