Number vs. Float and Integer
l
Number
is a class that generalizes
Float
and
Integer
.
l
Technically,
Float
and
Integer
ÒinheritÓ
from
Number
l
This is often done when they have a lot of
methods in common.
l
Object
is the class that generalizes all
other classes.