Question: this is a java assignment please help me to create classes 1-6 question are there In this and future assignments, we want to follow the

this is a java assignment please help me to create classes 1-6 question are there  this is a java assignment please help me to create classes
1-6 question are there In this and future assignments, we want to
follow the encapsulation principle. When we create new instance variables in existing
or new class files, we will declare them as private. However, you
only need to write their related getter and setter methods when instructed
to do so. Similarly, create constructors only when instructed. Bear in mind,
though, when writing production programs, you'd want to flesh out a class
fully by writing getter and setter methods for all instance variables and

In this and future assignments, we want to follow the encapsulation principle. When we create new instance variables in existing or new class files, we will declare them as private. However, you only need to write their related getter and setter methods when instructed to do so. Similarly, create constructors only when instructed. Bear in mind, though, when writing production programs, you'd want to flesh out a class fully by writing getter and setter methods for all instance variables and by building a set of overloaded constructors. 1. In your IDE, create a new project for Assignment 2. 2. In the project, create a package by the name your_lastname your_firstname (replace with your real names). We will save all class source files in the folder for this package (i.e., your project_folder\src\your_lastname your firstname\). 3. Download the source code files of student.java into the package folder (this is the version with only four instance variables - ID, name, gender, and GPA). Add/modify its package statement to make it part of the your_lastname,your_firstname package. 4. Create a Course dass. At the top of the source code, add lines of comment to show your name and date of writing the code. Then, make it part of the your_lastname.your_firstname package using a proper package statement. This class should contain four instance variables as follows: Data Type String String String int Variable courseNum courseTitle instructor hours Use Course number Course title Instructor name Number of credit hours Page is registered in taught by

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!