diff options
author | Kyle Kaminski <kyle@xenomedia.com> | 2014-04-09 22:02:09 -0500 |
---|---|---|
committer | Kyle Kaminski <kyle@xenomedia.com> | 2014-04-09 22:02:09 -0500 |
commit | af5272c6784050a97ce968d067274b86099fc3af (patch) | |
tree | 916d087495e8e67647597931ddb0fed79aa58544 /oo/magic_methods.php | |
parent | 55cfec6918fca9d3790ec8ab231d0178349fe2fa (diff) | |
download | phpsandbox-af5272c6784050a97ce968d067274b86099fc3af.tar.gz phpsandbox-af5272c6784050a97ce968d067274b86099fc3af.tar.bz2 phpsandbox-af5272c6784050a97ce968d067274b86099fc3af.zip |
some oo concepts
Diffstat (limited to 'oo/magic_methods.php')
-rw-r--r-- | oo/magic_methods.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/oo/magic_methods.php b/oo/magic_methods.php new file mode 100644 index 0000000..8d9da79 --- /dev/null +++ b/oo/magic_methods.php @@ -0,0 +1,16 @@ +<?php + +abstract class Base { + protected $arr; + + function __construct() { + echo 'dispatching ctor'; + $this->arr = array(); + } + + abstract protected function foo(); +} + +class Derived extends Base { + +}
\ No newline at end of file |