JS Class Inheritance

Descripción

Create a JS class that extends a parent class


File Template: ❌


Prefix

class:extend


Scopes

javascript

typescript


Snippet de código

class ${2:ChildClass} extends ${1:ParentClass} {
	constructor(${3:args}) {
		super($3);
		${4:// child attributes here}
	}

	${5:childMethod()} {
		${6:// TODO: implement method}
	}
}