Question: Which code snippet uses the correct syntax for creating an instance of the Pet class?
- `$dog = new Pet;`
- all of these answers
- `$horse = (new Pet);`
- `$cat = new Pet();`
Answer: The correct answer of the above question is Option B:all of these answers