Create an abstract class called Student. The student class includes a name and a Boolean representing status of the student, full time or part time. Include an abstract method to determine the tuition fee, full time students paying a flat fee for one class RM1000. And part time students paying RM200 per credit hour. Create two subclasses called Fulltime and Parttime. Create an application that demonstrate the calculation of tuition fees according to how many subjects the students take for fulltime and how many credit the students will take for part time. Save the files as Student.java, Fulltime.java, Parttime.java and UseStudent.java
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
Create an abstract class called Student. The student class includes a name and a Boolean representing status of the student, full time or part time. Include an abstract method to determine the tuition fee, full time students paying a flat fee for one class RM1000. And part time students paying RM200 per credit hour.
Create two subclasses called Fulltime and Parttime. Create an application that demonstrate the calculation of tuition fees according to how many subjects the students take for fulltime and how many credit the students will take for part time.
Save the files as Student.java, Fulltime.java, Parttime.java and UseStudent.java
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images