Question: Java Programming COMP - 2 2 8 Lab # 2 Page 2 of 2 Write a Java application that creates a Java console application to

Java Programming COMP-228
Lab #2 Page 2 of 2
Write a Java application that creates a Java console application to keep records of students and
displays stored record. Follow the following instructions to develop the application:
Create a class named Student with the following specifications:
5 instance variables that would store the following student data (Use recommended
variable naming conventions and appropriate data type for each instance variable):
o Students id
o Students name
o Students address
o Students date of birth
o Students department
Several constructors that would allow you to construct Student object with no
arguments, 1 argument, 2 arguments, 3 arguments, 4 arguments, and 5 arguments.
Create Setters and getters for all the instance variables of class Student. Make sure
to have several setters that would allow you to set the values of individual instance
variables of the student object. Also create one setter that would allow you to set
all the values of the instance variables at once. Create several getters that would
allow you to get the current individual values of each instance variables of the
Student object.
Create the driver class that would create 1 Student (student1) object with the help
of the no argument constructor. Display the default values of the instance variables
of this object student1.
Set the values of each instance variables with the help of setters. Display the values.

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!