Good stuff! When we use new Dog()
, we call the constructor of the Dog
class and, therefore, trigger bark()
.
Psst: myDog
is an instance and, as such, represents a specific object: the one-and-only "Baxter"
.
Yikes! Wouldn't we also have to declare Dog()
as new
?