Question: 4. (JAVA) Continuing along problem 3 (please see problem 3 below), create a client class called TestStudent in which you will write statements that will

4. (JAVA) Continuing along problem 3 (please see problem 3 below), create a client class called TestStudent in which you will write statements that will create 3 objects using each of the constructors specified in the Student class. You may call the objects student1, student2 and student3. You may choose any appropriate argument values for the overloaded constructors.

Answer: Submit the TestStudent class code showing the use of three different types of constructors as described above. Make sure to have a main method in the TestStudent class and create your constructors in this main method.

Problem 3 (doesn't need answered, as it is only referenced in the above problem.)4. (JAVA) Continuing along problem 3 (please see problem 3 below), create

3. Create a class called Student that represent some basic enrollment information about the student. The instance variables are studenti creditsEarned and gra, which are String, integer and double, respectively you may either create a new class, or add extra features to the class that you have in problem 1). Define constructors in the Student class that can do the following in any client class: Create a new Student object using the default constructor. Pick any default values of your choice, for the default constructor's instance variables. Create a new Student object using overloaded constructor that takes in three arguments that provide values for the three instance variables. Create a new Student object using a 2 argument constructor. The two arguments will provide values for students, and credits Earned instance variables. Student -credits Earned: int -studentID: String -epa:double +Student) +Student(String, int) +Student(String, int, double) +getCreditsEarned (): int +getGpa():double +getStudentID():String setCreditsEarned (int):void +setStudentID(String):void setGpa(double):void +findCreditsRemaining():int +findStudentStatus():String

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!