assgn10/Undergraduate.cpp
Undergraduate::Undergraduate(string firstname, string lastname, string ssn,
	string phone_num, int age, string major_title, string minor_title)
{
	/**
	 * Automatically initialize the Student Attributes by default
	 * Student constructor
	 */
	if(set_ssn(ssn) &&
		set_lastname(lastname) &&
		set_firstname(firstname) &&
		set_phone(phone_num) &&
		set_age(age)) {
		
		set_major(major_title);
		set_minor(minor_title);
	}else{
		cout << "Default constructor of the Undergraduate student has errors"
			<< endl;
	}
}
// Standard constructor - provide all parameters
Standard constructor - provide all parameters
Standard constructor - provide all parameters
Undergraduate::Undergraduate(string firstname, string lastname, string ssn,
	string phone_num, int age, string major_title, string minor_title)
{
	if(set_ssn(ssn) &&
		set_lastname(lastname) &&
		set_firstname(firstname) &&
		set_phone(phone_num) &&
		set_age(age)) {
		set_major(major_title);
		set_minor(minor_title);
	}else{
		cout << "Default constructor of the Undergraduate student has errors"
			<< endl;
	}
}
Undergraduate :: Undergraduate ( string firstname , string lastname , string ssn , string phone_num , int age , string major_title , string minor_title ) { if ( set_ssn ( ssn ) && set_lastname ( lastname ) && set_firstname ( firstname ) && set_phone ( phone_num ) && set_age ( age ) ) { set_major ( major_title ) ; set_minor ( minor_title ) ; } else { cout << " " << endl ; } }
Standard constructor - provide all parameters
Standard constructor - provide all parameters
/**
	 * Automatically initialize the Student Attributes by default
	 * Student constructor
	 */