mirror of
https://github.com/restoreddev/phpapprentice.git
synced 2025-10-24 11:26:06 +02:00
Chapter editing fixes
This commit is contained in:
@@ -50,7 +50,7 @@ class Motorcycle extends Vehicle
|
||||
}
|
||||
```
|
||||
|
||||
Outputs "driving...".
|
||||
The `pushPedal` method outputs "driving...".
|
||||
```php
|
||||
$cycle = new Motorcycle();
|
||||
$cycle->pushPedal();
|
||||
@@ -71,7 +71,7 @@ class Racecar extends Vehicle
|
||||
}
|
||||
```
|
||||
|
||||
Outputs "driving..." and "driving even faster...".
|
||||
The `drive` method on `Racecar` now outputs "driving..." and "driving even faster...".
|
||||
```php
|
||||
$racecar = new Racecar();
|
||||
$racecar->drive();
|
||||
|
||||
Reference in New Issue
Block a user