Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- abstract class Tier
- {
- protected $Name;
- protected $Laut;
- public function gibNameAus()
- {
- echo $this->Name;
- }
- public function fibLaut()
- {
- echo $this->Laut;
- }
- }
- class Hund extends Tier {
- public function __construct()
- {
- $this->Laut = "Wuff";
- $this->Name = "Bello/HUND";
- $this->gibNameAus();
- echo "\n";
- $this->fibLaut();
- }
- }
- $obj = new Hund;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement