Course · Section 14: Object-Oriented Programming (OOP) With JavaScript · Lecture 233: Inheritance Between "Classes": ES6 Classes
Using an `Animal` base class and a `Dog` subclass that extends it, implement `dogSound(name)` returning the name followed by ` barks`.
+ 1 hidden test run on Submit.
Dog inherits name from Animal and adds a speak method, demonstrating class inheritance.
Run your code to see results.