i want to refer to the challenge in the oop section of the JS curriculum, here is the link to it:
Use Inheritance So You Don’t Repeat Yourself
the problem I have is when I create a parent/supertype called animal, how am I going to use it to access the method I stored in it which is called describe, through the first constructor functions Dog and Bird?
remember that the method animal carries have a this.name which is not set in the constructor function animal as property.
how is this Don’t Repeat Yourself principle it useful in this case ?