mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 14:56:54 +02:00
@@ -329,7 +329,7 @@ class Bicycle {
|
|||||||
}
|
}
|
||||||
} // end class Bicycle
|
} // end class Bicycle
|
||||||
|
|
||||||
// Use `extends` to extend a class
|
// PennyFarthing is a subclass of Bicycle
|
||||||
class PennyFarthing extends Bicycle {
|
class PennyFarthing extends Bicycle {
|
||||||
// (Penny Farthings are those bicycles with the big front wheel.
|
// (Penny Farthings are those bicycles with the big front wheel.
|
||||||
// They have no gears.)
|
// They have no gears.)
|
||||||
|
Reference in New Issue
Block a user