/**
 Review for CS2 - Getting up to speed
 */


public class Student
{
	/* The following three variables are called "Instance Variables" */
	private String fname;
	private String lname;
	private int stuID;
	
	/* Remember static variables ? They have no reference....sometimes
	 * referred to as "Class Variables" 
	 */
	
	private static int count=0;

	/**
	 * We provide two constructors. The first is called a "Default Constructor"
	 */
	
	public Student()
	{count++;
	 fname="Not Given";
	 lname="Not given";
	 stuID=0;
		
	}
	
	public Student(String f,String l, int ID)
	{ fname=f;
	  lname=l;
	  stuID=ID;
	  count++;
	}
	
	/* You should (almost always) provide a toString method for output */
	
	public String toString()
	{ String temp;
	    temp="First Name: "+fname+'\n';
	    temp+="Last Name: "+lname+'\n';
	    temp+="ID: "+stuID+'\n';
	    return temp;
	}
	
	/* The following is sometimes referred to as an "accessor method",
	 * that is, it retrieves the value of an instance variable
	 */
	
	public String getFirst()
	{ return fname;
	}
	
	/* The following is referred to as a "Mutator", that is, it changes the value
	 * of an instance variable
	 */
	
	public void changeFirst(String newName)
	{ fname=newName;
	}
	
	
	/* Ahhhh....explain this one   */
	
	public static int getCount()
	{ return count;}

	
}