Toggle navigation
Genres
Frontend (2)
JavaScript (6)
Database (2)
Linux Server (3)
Web Apps (4)
Misc (4)
Search
List
New Tutorials
Last Modified Tutorials
</>
Code examples
code
smiko
backend
php
oop
classes_objects
43scope_nonInheritance.php
43scope_nonInheritance.php
<?php //upotreba scope operatora (::) class A { public $a='Svojstvo iz A klase'; } class B extends A { public static function pubs_b(){echo 'PublicStatMet B ';} } class C extends A { public function pubs_c() { B::pubs_b(); } } /** WORLD **/ $obj=new C; $obj->pubs_c(); ?>
Reload page
Preview
W3C validation
Edit Code