Download presentation
Presentation is loading. Please wait.
1
Chapter 7 Polymorphism
2
Topic Outline Polymorphism Concept Abstract classes and methods
Method overriding Array of superclasses Interfaces Vs. Astract classes
25
This program shows how to use abstract class
51
Summary
52
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.
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.