Static & Private Class Fields
What happens when both base and derived classes have private fields with the same name?
class Base {
#privateField = 'base';
getField() {
return this.#privateField;
}
}
class Derived extends Base {
#privateField = 'derived';
getDerivedField() {
return this.#privateField;
}
}