This Java program is demonstrating inheritance and abstraction with animal classes (Horse, Cat, Dog) inheriting from an abstract Animal class. The Animal class serves as an abstract base class defining common attributes and an abstract method for producing the sound of an animal, which will be implemented in the subclasses.
-
Notifications
You must be signed in to change notification settings - Fork 0
er-hiba/Animal-Abstract-Class-Java
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A Java demonstration illustrating an abstract class and its usage in inheritance.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published