Object Creation Methods
What OOP concept is being implemented?
class Base {
constructor() {
if (new.target === Base) {
throw new Error('Abstract class cannot be instantiated');
}
}
method() { throw new Error('Abstract method'); }
}