<?php class Cars { static $wheel_count = 4; static $door_count = 2; static function car_detail(){ return self::$wheel_count; return self::$door_count; } } class Trucks extends Cars { static function display(){ echo parent::car_detail(); } } Trucks::display(); ?>
static function car_detail(){ return self::$wheel_count; return self::$door_count; }
return
return self::$door_count;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)