Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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

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_2

Step: 3

blur-text-image_3

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

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago