Which code snippet uses the correct syntax for creating an instance of the Pet class?
$horse = (new Pet);
all of these answers
$cat = new Pet();
$dog = new Pet;