I have some troubles with inheritance. I have something like that
file A.php
namespace Main;
class A{
public function __construct(){ echo 'A->__construct'; }
}
and file B.php
namespace Main;
class B extends \Main\A{
/* if I write this construct and remove extends from this class - it works - but I need to inherit it */
public function __construct(){ $a = new \Main\A(); }
public function something(){ echo 'B->something';}
}
Are there some cases when classes cannot be inherited or inherit another class?