Project 3 -- Part of Midterm Test

Due date: Mar 14 Thr 8:30 pm

Describe an object in Java code(50 pts)

To describe an object in Java code, you are required to define a class. This class has fields described as follows:

Write two constructors ( 10 pts)
Write getters\setters for these fields (10 pts)
Write a perfect sentence to describe your object (10 pts)
Compile it successfully.

For example:

public class GradStudent {
    private double gpa;
    public String name;
    public static char status;
    String address;
    GradStudent(String name, String address) { = name;
       this.address = address;
    public double getGPA() {
        return gpa;
    public void setGPA(double gpa) {
        this.gpa = gpa;
    public String getName() {
        return name;
    public void setName(String nm) {
        name = nm;
A graduate student is a Student. A student has a GPA, a name, an address and a status.
Another example is Employee class. See class notes for more info.