3 ms·
> You can't necessarily add properties to a base class and have all of those reflect immediately Are you talking about JS? You definitely can: class A {}
by viklove 7y ago
> You can't necessarily add properties to a base class and have all of those reflect immediately
Are you talking about JS? You definitely can:
class A {}
class B extends A {}
const b = new B();
A.prototype.test = () => 'test';
b.test();
// => 'test'