Java Reference
In-Depth Information
CHAPTER
15
A BSTRACT C LASSES
AND I NTERFACES
Objectives
To design and use abstract classes (§15.2).
To generalize numeric wrapper classes, BigInteger , and BigDecimal
using the abstract Number class (§15.3).
To process a calendar using the Calendar and GregorianCalendar
classes (§15.4).
To specify common behavior for objects using interfaces (§15.5).
To define interfaces and define classes that implement interfaces (§15.5).
To define a natural order using the Comparable interface (§15.6).
To make objects cloneable using the Cloneable interface (§15.7).
To explore the similarities and differences among concrete classes,
abstract classes, and interfaces (§15.8).
To design the Rational class for processing rational numbers (§15.9).
 
 
 
Search WWH ::




Custom Search