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