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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started