| 16 | // rabbit.__proto__ = animal; // sets rabbit.[[Prototype]] = animal |
| 17 | |
| 18 | class Animal{ |
| 19 | constructor(name){ |
| 20 | this.name = name |
| 21 | console.log("Object is created...") |
| 22 | } |
| 23 | |
| 24 | eats(){ |
| 25 | console.log("Kha raha hoon") |
| 26 | } |
| 27 | jumps(){ |
| 28 | console.log("Kood raha hoon") |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | |
| 33 | class Lion extends Animal { |
nothing calls this directly
no outgoing calls
no test coverage detected