summaryrefslogtreecommitdiffstats
path: root/oo/magic_methods.php
blob: 8d9da79afe8503c371025710cf9178b3e26393e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

abstract class Base {
    protected $arr;

    function __construct() {
        echo 'dispatching ctor';
        $this->arr = array();
    }

    abstract protected function foo();
}

class Derived extends Base {

}