Question: In this lab you will create a new class, CourseName, and will create objects using this class. Course Lab Series - Lab 0 1 CourseName

In this lab you will create a new class, CourseName, and will create objects using this class.
Course Lab Series - Lab 01 CourseName
Classes
App
App will create 4 CourseName objects
1 object using the no-parameter constructor
3 objects using the full-parameter constructor
see the data in the general CourseName class description
for this lab, use objects 1,2 and 3 described in the CourseName class
App will display the data of each object
it needs to use a System.out.println statement
it needs to use the toString() method from the CourseName class
App will display a line separator
it is a simple string with a series of "="
this can be achieved with the statement
System.out.println("=================================");
App will also display a line that you need to build for each object
the attribute major
a space ""
the attribute number
a String " is an "
the Course level
for instance, a display line for the first object would be
IST 101 is an Introductory course
CourseName
see the general CourseName class description
Output
CourseName{major=IST, number=101}
CourseName{major=IST, number=240}
CourseName{major=IST, number=431}
CourseName{major=SRA, number=211}
=================================
IST 101 is an Introductory course
IST 240 is an Intermediate course
IST 431 is an Upper-division course
SRA 211 is an Intermediate course
Through NetBeans

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 Finance Questions!