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

Class Admin

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

Source from the content-addressed store, hash-verified

16
17// Derived Class
18class Admin extends User {
19 constructor(id, username, permissions) {
20 super(id, username);
21 this.p = permissions;
22 }
23}
24
25class Superman extends Admin {
26 constructor(id, username, permissions, ability) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected