/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//creating the so called "abstraction" layer...(????) class BaseCache{ public function BaseCache(){ //some intitialization here... } public function set($key, $val){ } public function get($key){ } } class MemCache extends BaseCache{ } $ooo = new MemCache; $ooo->set("dd", "ggg");
Comments
