Question: Create a class called Student that represent some basic enrollment information about the student. The instance variables are studentID , creditsEarned and gpa, which are
Create a class called Student that represent some basic enrollment information about the student. The instance variables are studentID , creditsEarned and gpa, 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 constructors 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 studentID and creditsEarned instance variables.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
