Answers for "php extend class"

PHP
0

php extend class

<?php
class A {
        // more code here
}
 
class B extends A {
        // more code here
}
 
class C extends B {
        // more code here
}
 
 
$someObj = new A();  // no problems
$someOtherObj = new B(); // no problems
$lastObj = new C(); // still no problems
 
?>
Posted by: Guest on July-10-2021

Browse Popular Code Answers by Language