mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 15:24:09 +03:00
Correct syntax error declaring final method
This commit is contained in:
parent
c8800bff13
commit
23e822bcc1
@ -367,10 +367,11 @@ Classes are insantiated with the ```new``` keyword. Functions are referred to as
|
||||
|
||||
```php
|
||||
class MyClass {
|
||||
function myFunction() {
|
||||
function myFunction()
|
||||
{
|
||||
}
|
||||
|
||||
function function youCannotOverrideMe()
|
||||
final function youCannotOverrideMe()
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user