Answer: D
The colorChange
function is static. Static methods are designed to live only on the constructor in which they are created, and cannot be passed down to any children or called upon class instances. Since freddie
is an instance of class Chameleon, the function cannot be called upon it. A TypeError
is thrown.