//class to simulate Student Object

public class studentSimulation{
    
    public static void main(String [] args){
        //Creating three student Object
        //Note in order for this to work you must have Student.java in the same directory
        Student s1 = new Student("Lisa", "Chemistry", 17);
        Student s2 = new Student("Bart","ESE", 18);
        Student s3 = new Student("Jill", "Art History", 17);
        
        //Change Lisa's age to 18. 
        s1.setAge(18);
        //Check to see what Jill's age and Lisa's age
        //Should be different, indicating that each object has its own unique data
        System.out.println(s1.getName() + "'s age is " + s1.getAge());
        System.out.println(s3.getName() + "'s age is " + s3.getAge());
        //-----------------------//
        //Bart's current major
        System.out.println(s2.getName() + "'s Major is " + s2.getMajor());
        //Bart wants to change from ESE to CIS
        s2.setMajor("CIS");
        //See if Bart's Major got updated
        System.out.println(s2.getName() + "'s new Major is " + s2.getMajor());
    }
    
    
}
