MCPcopy Create free account
hub / github.com/PhilopaterHany/JavaScript-Bootcamp / Superman

Class Superman

Lessons/Week 19/153 - Class Inheritance.js:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25class Superman extends Admin {
26 constructor(id, username, permissions, ability) {
27 super(id, username, permissions);
28 this.a = ability;
29 }
30}
31
32let userOne = new User(100, "Elzero");
33let adminOne = new Admin(110, "Mahmoud", 1);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected