Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

Has the priority order been provided by someone else?

Answered: 1 week ago

Question

Compare the current team to the ideal team.

Answered: 1 week ago

Question

Are the rules readily available?

Answered: 1 week ago