MCPcopy Create free account
hub / github.com/CodeWithHarry/Sigma-Web-Dev-Course / Lion

Class Lion

Video 80/script.js:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33class 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
45let a = new Animal("Bunny");
46console.log(a)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected