Posted By

theasta on 09/05/10


Tagged

oop


Versions (?)

Abstract PHP Class Starter


 / Published in: PHP
 

  1. <?php
  2. abstract class myAbstractClass {
  3.  
  4. //Properties must be protected
  5. protected $foo;
  6.  
  7. abstract public function __construct();
  8.  
  9. //Private methods can't be abstract; they must be either public or protected.
  10. abstract public function myfunction();
  11. }
  12. ?>

Report this snippet  

You need to login to post a comment.