Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class classA {
- private function Something() {
- echo 'here';
- }
- public function saySomething() {
- $this->Something();
- }
- }
- class classB extends classA {
- public function Something() {
- echo 'or here';
- }
- }
- $object = new classB();
- $object->saySomething();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement