CS 1401, Quiz 10, TR version

Date: Tuesday, November 11, 2014
Name (please type legibly, ideally in block letters): ______________________________________________________________________

1. Write down a Java code describing a class Student. Each object of this class should have a student's name, a student's major, and the number of credit hours taken by the student this semester. Define a constructor and all needed get- and set-methods. In the main program, call a constructor to create an object of type Student describing you.