| 31 | |
| 32 | |
| 33 | class Lion extends Animal { |
| 34 | constructor(name){ |
| 35 | super(name) |
| 36 | console.log("Object is created and he is a lion...") |
| 37 | } |
| 38 | |
| 39 | eats(){ |
| 40 | super.eats() |
| 41 | console.log("Kha raha hoon roar") |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | let a = new Animal("Bunny"); |
| 46 | console.log(a) |
nothing calls this directly
no outgoing calls
no test coverage detected