Create an abstract class called Student. The Student class includes a name and a Boolean value representing full-time status. Include an abstract method to determine the tuition, with full-time students paying a flat fee of $2,000 and part-time students paying $200 per credit hour. Create two subclasses called FullTime and PartTime. Create an application that demonstrates how to create objects of both subclasses. 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 value representing full-time status. Include an abstract method to determine
the tuition, with full-time students paying a flat fee of $2,000 and part-time students
paying $200 per credit hour. Create two subclasses called FullTime and PartTime.
Create an application that demonstrates how to create objects of both subclasses.
Save the files as Student.java, FullTime.java, PartTime.java, and UseStudent.java.
Step by step
Solved in 4 steps with 4 images