class A {
private $table = 'table1';
public function __construct() {
// some init
}
public function run () {
// select * from $this->table
}
}
class B extends A {
public function __construct() {
parent::__construct();
// some init
$this->table = 'table2';
}
}