<?php

interface ThrowableInterface
{
    public function getMessage();
    public function getErrno();
}
class Exception_foo implements ThrowableInterface
{
    public $foo = "foo";
    public function getMessage()
    {
        return $this->foo;
    }
}
// this should die -- Exception class must be abstract...
$foo = new Exception_foo();
echo "Message: " . $foo->getMessage() . "\n";
?>
===DONE===
Beispiel #2
0
[expect php]
[file]
<?php 
interface Throwable
{
    public function getMessage();
}
class Exception_foo implements Throwable
{
    public $foo = "foo";
    public function getMessage()
    {
        return $this->foo;
    }
}
$foo = new Exception_foo();
echo $foo->getMessage() . "\n";
?>