This project demonstrates the concept of abstraction and runtime polymorphism in Java using an abstract class Pen. The program defines abstract methods write() and refill(), which are implemented in a subclass to show how abstract classes enforce method implementation while enabling dynamic dispatch.
-
Notifications
You must be signed in to change notification settings - Fork 0
This project demonstrates the concept of abstraction and runtime polymorphism in Java using an abstract class Pen. The program defines abstract methods write() and refill(), which are implemented in a subclass to show how abstract classes enforce method implementation while enabling dynamic dispatch.
gobinda-06/Java_Abstraction_Pen_Example
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
This project demonstrates the concept of abstraction and runtime polymorphism in Java using an abstract class Pen. The program defines abstract methods write() and refill(), which are implemented in a subclass to show how abstract classes enforce method implementation while enabling dynamic dispatch.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published