<?php class Car { protected static $wheels = 4; public function wheels() { return "Car has " . self::$wheels . " wheels\n"; } } $car = new Car(); print $car->wheels();
You have javascript disabled. You will not be able to edit any code.