mirror of
https://github.com/restoreddev/phpapprentice.git
synced 2025-10-25 03:46:05 +02:00
Chapter editing fixes
This commit is contained in:
@@ -25,7 +25,7 @@ class Bicycle
|
||||
```
|
||||
|
||||
Then, when you create an instance of the class, you can set and use
|
||||
the color attribute on the bicycle using `->`.
|
||||
the attribute on the instance using `->`.
|
||||
```php
|
||||
$bike = new Bicycle();
|
||||
$bike->color = 'Blue';
|
||||
@@ -55,7 +55,7 @@ class Tricycle
|
||||
}
|
||||
```
|
||||
|
||||
You can execute a method on an object using the same `->` arrow characters.
|
||||
You can execute a method on an object using the same `->` arrow characters with parentheses after the method name.
|
||||
```php
|
||||
$bike = new Tricycle();
|
||||
$bike->color = 'Red';
|
||||
|
||||
Reference in New Issue
Block a user