Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abstract class AbstractClass {
- protected abstract function foo($data);
- public function __construct($param) {
- self::foo($param);
- }
- }
- class ConcreteClass extends AbstractClass {
- public $propertie;
- protected function foo($data) {
- $this->propertie = $data;
- }
- }
- $fa = new ConcreteClass('banana');
- echo $fa->propertie;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement