- $dog = new Pet;
- all of these answers
- $horse = (new Pet);
- $cat = new Pet();
Correct Answer:
- all of these answers
Which code snippet uses the correct syntax for creating an instance of the Pet class?
Correct Answer:
Latest Updates
No posts found in this category.