Chapter 7
More on Objects and Exceptions
OBJECTIVES
- To explain the need for abstract class and abstract methods
- To define abstract class, abstract methods and non abstract methods
- To implement an abstract class Flower
- To explain interfaces and its method definitions
- To explain the difference between interfaces and abstract classes
- To create Wearable and Flyable interfaces
- To explain enum and its applications
- To create packages and subpackages for class taxonomy
- To add classes to packages
- To import packages containing classes and interfaces
- To explain how packages help to avoid name collision
- To illustrate protected data members with package
- To define compile time errors and runtime exceptions
- To explain Java built-in exception class hierarchy ...
Get JAVA Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.