Java - clarify extends

This commit is contained in:
Sonia Hamilton 2013-07-02 20:06:22 +10:00
parent 05d3fa73ae
commit a2e2e202f4

View File

@ -329,7 +329,7 @@ class Bicycle {
}
} // end class Bicycle
// Use `extends` to extend a class
// PennyFarthing is a subclass of Bicycle
class PennyFarthing extends Bicycle {
// (Penny Farthings are those bicycles with the big front wheel.
// They have no gears.)