Hey I’m at the Object Oriented course section and there is an example stating:
If you have an instance
let duck = new Bird();and you call
- duck => Is eat() defined here? No.
- Bird => Is eat() defined here? => Yes. Execute it and stop searching.
I understand the rest of the problem and got the solution, but just wanted to make sure I understand this. Please expand on this if possible.