Chapter 7 Polymorphism
Topic Outline Polymorphism Concept Abstract classes and methods Method overriding Array of superclasses Interfaces Vs. Astract classes
This program shows how to use abstract class
Summary
Exercise 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 fee. A full-time students paying RM2,000, and a part-time students paying RM200 per credit hour. Create the subclasses called FullTime and PartTime. Create an application program to create objects of both subclasses.