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
59abstract_abstract.php
59abstract_abstract.php
<?php /** *Primjer pokazuje da se ispod abstraktne klase moze staviti *jos jedna ili vise abstraktnih klasa */ abstract class A { public $a=' Sv a '; } abstract class B extends A { public $b=' Sv b '; } class C extends B { public $c=' Sv c '; } $obj_c=new C; echo $obj_c->a; echo $obj_c->b; echo $obj_c->b; ?>
Reload page
Preview
W3C validation
Edit Code