First, brainstorm in pairs to do the Object-Oriented Design for a Student class. What data should we
Question:
First, brainstorm in pairs to do the Object-Oriented Design for a Student class. What data should we store about Students? Come up with at least 4 different instance variables. What are the data types for the instance variables?
Write a Student class below that has your 4 instance variables and write at least 3 different constructors: one that has no parameters and initializes the instance variables to default values, one that has 4 parameters to set the instance variables, and one that has 1 parameter for the most important instance variable and uses defaults for the others.
Add a print() method that uses System.out.println to print out all the instance variables.
Add a main method that constructs at least 3 Student objects using the 3 different constructors and then calls their print() methods.
Smith and Roberson Business Law
ISBN: 978-0538473637
15th Edition
Authors: Richard A. Mann, Barry S. Roberts