xiv Contents
6.6 Methods Overriding 6.13
6.7 Run-time Polymorphism 6.14
6.8 Abstract Classes 6.16
6.9 Using Final with Inheritance 6.18
6.9.1 Final Method 6.18
6.9.2 Final Classes 6.18
6.10 Object Class 6.19
6.11 Packages 6.21
6.11.1 Reusable Classes 6.21
6.12 Path and Classpath 6.22
6.13 Importing of Packages 6.22
6.14 Access Specifiers Revisited for Packages 6.24
6.15 Interfaces 6.24
6.15.1 What and Why of Interfaces 6.25
6.15.2 Differences between Classes and Interfaces 6.25
6.15.3 Variables and Methods in Interfaces 6.26
6.15.4 Extending Interfaces 6.27
16.5.5 Subtype 6.29
6.16 Benefits of Inheritance: Costs of Inheritance 6.29
6.17 Key Points 6.30
Exercise Questions 6.30
Objective Questions 6.30
Short-answer Questions 6.32