fixes
This commit is contained in:
parent
59b5530053
commit
dacfefc716
1 changed files with 1 additions and 1 deletions
|
@ -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`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue