PHP/Interfejsy: Różnice pomiędzy wersjami
Usunięta treść Dodana treść
→Przykładowe użycie: poprawka przy liście ograniczeń interfejsów pkt 2 (patrz: http://www.php.net/manual/en/language.oop5.interfaces.php) |
→Interfejsy: traurig |
||
Linia 134:
class Bar extends Foo implements GooInterface
{
public function
{
echo '
} // end
} // end GooInterface;
</source>
Linia 163:
interface Joe extends Foo, Bar
{
public function
} // end Joe;
class Abc implements
{
public function foo()
Linia 178:
} // end foo();
public function
{
echo '
} // end foo();
} // end Abc;
Linia 193:
echo 'Ten obiekt implementuje interfejs Bar<br/>';
}
if($class instanceof
{
echo 'Ten obiekt implementuje interfejs Joe<br/>';
|