Next: Inheritance 8: Abstract Method
Up: Java Notes
Previous: Inheritance 7: Abstract Class
- Abstract class: no instance creation
- Subclass of Abstract Class: instance ok
- Can assign a subclass object to a Superclass instance
- Abstract Superclass methods can be accessed whether overridden or not
- Abstract methods must be overridden and implemented in a subclass otherwise the latter will be abstract
- Abstract methods cannot be static
- Example:
Ananda Amatya
9/15/1999