Create an abstract class named Course that can be used with course allocation mechanism of an enterprise. The Course class should track the course Id Number , course Title and course Credit Hours with...


Create an
abstract class
named
Course
that can be used with
course allocation mechanism
of an enterprise. The Course class should track the
course Id Number,
course Title and course Credit Hours with appropriate accessor/getter and mutator/setter methods. Define an
equals (Course obj)
method, that
returns true if caller and input argument course object have identical course Id Number.


Also define an
abstract method double getCourseEnrollmentFee().
Next, create two additional classes named
ElectiveCourse and CoreCourse
that are
derived from Course. Finally, create an overridden method named
getCourseEnrollmentFee() calculate and returns the total fee
for that course.
Elective course
has
Rs. 10,000 per credit hours
and
Core
has
Rs. 13,000 per credit hours.



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here