Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class cAbstract
- {
- public function zrobCos()
- {
- $this->metodaChilda();
- }
- }
- class Child extends cAbstract
- {
- public function start()
- {
- $this->zrobCos();
- }
- protected function metodaChilda()
- {
- echo 'elo';
- }
- }
- $obj = new Child();
- $obj->start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement