The line in the following code that is creating the spot Dog is:
line 7
This line calls the constructor of the Dog
class to create a new instance of Dog
with the breed "lab" and color "black", and assigns it to the variable spot
.
1 answer
The line in the following code that is creating the spot Dog is:
line 7
This line calls the constructor of the Dog
class to create a new instance of Dog
with the breed "lab" and color "black", and assigns it to the variable spot
.