mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
adding a missing feature in PHP OOP
This commit is contained in:
parent
f698fb6fbb
commit
ace46b17f2
@ -1,7 +1,8 @@
|
||||
---
|
||||
language: php
|
||||
contributors:
|
||||
- ["Malcolm Fell", "http://emarref.net/"]
|
||||
- [Malcolm Fell](http://emarref.net/)
|
||||
- [Trismegiste](https://github.com/Trismegiste)
|
||||
filename: learnphp.php
|
||||
---
|
||||
|
||||
@ -526,6 +527,12 @@ interface InterfaceTwo
|
||||
public function doSomethingElse();
|
||||
}
|
||||
|
||||
// interfaces can be extended
|
||||
interface InterfaceThree extends InterfaceTwo
|
||||
{
|
||||
public function doAnotherContract();
|
||||
}
|
||||
|
||||
abstract class MyAbstractClass implements InterfaceOne
|
||||
{
|
||||
public $x = 'doSomething';
|
||||
|
Loading…
Reference in New Issue
Block a user