# Pastebin Z1QxhG2o class A { static #privateMethod() { } static #privateProp = 5; publicMethod1() { this.constructor.#privateMethod(); } publicMethod2() { this.constructor.#privateProp; } } class B extends A {} const x = (new B()).publicMethod1(); const y = (new B()).publicMethod2();