PHP - Classes and Objects
What will be the output of this PHP code?
class Car {
private $color = 'red';
public function getColor() {
return $this->color;
}
}
$car = new Car();
echo $car->getColor();