This commit is contained in:
Ilya Kantor 2019-10-11 10:38:12 +03:00
parent 59b5530053
commit dacfefc716

View file

@ -34,7 +34,7 @@ Here's how we can represent `animal` object and `Animal` class graphically:
...And we would like to create another `class Rabbit`.
As rabbits are animals, `Rabbit` class should be based on `Animal`, have access to animal methods, so that it can do what "generic" animals can do.
As rabbits are animals, `Rabbit` class should be based on `Animal`, have access to animal methods, so that rabbits can do what "generic" animals can do.
The syntax to extend another class is: `class Child extends Parent`.