ES6 Classes & Constructors
What structural design pattern does the MathUtils class demonstrate?
class MathUtils {
static add(a, b) {
return a + b;
}
static multiply(a, b) {
return a * b;
}
constructor() {
throw new Error('Utility class cannot be instantiated');
}
}