Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The requirements of this application are as follows. The application is to define a Java class called Course. The Course class has the following members:

The requirements of this application are as follows. The application is to define a Java class called Course. The Course class has the following members: 1. code attribute - a string field to store the course code (e.g. IT4789) 2. creditHours attribute an int field to store the credit hours of the course (e.g. 3) 3. title attribute a string field to store the title of the course (e.g. Mobile Cloud Computing Application Development) 4. Parameterized constructor with the three parameters of code, creditHours, and title. The constructor simply assigns the received values to their corresponding attributes 5. An overridden toString() method that returns the name of the Java class (i.e. Course) and the course code assigned to the class object The application need to extend the Course class into two other Java classes named: 1. FlexPathCourse 2. GuidedPathCourse The FlexPathCourse class adds the following members: 1. optionalResources attribute a string field for the optional resources for a flexpath course 2. Parameterized constructor with the three parameters of code, creditHours, and title. The constructor simply assigns the received values to their corresponding attributes 3. An overridden toString() method that returns the name of the Java class (i.e. FlexPathCourse) and the course code assigned to the class object The GuidedPathCourse class adds the following members: 1. duration attribute an int field for the duration of a guidedpath course 2. requiredResources attribute a string field for the required resources for a guidedpath course 3. Parameterized constructor with the three parameters of code, creditHours, and title. The constructor simply assigns the received values to their corresponding attributes 4. An overridden toString() method that returns the name of the Java class (i.e. GuidedPathCourse) and the course code assigned to the class object

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

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions