0
I have two classes : A and B
Class B is like this: B extends A
I need to use some methods that has within the Class To, in class B
.
How I do?
class NeorisMapBi {
constructor(mapID, mapOBJ){
this._mapID = mapID;
this._mapOBJ = mapOBJ;
}
get MapBi(){
return this._mapOBJ;
};
}
class CustomControl extends NeorisMapBi {
constructor(divID, divCLASS, divPOSITION, buttonID, buttonCLASS, buttonTITLE, buttonINNERHTML){
this._divID = divID;
this._divCLASS = divCLASS;
this._divPOSITION = divPOSITION;
this._buttonID = buttonID;
this._buttonCLASS = buttonCLASS;
this._buttonTITLE = buttonTITLE;
this._buttonINNERHTML = buttonINNERHTML;
}
}
Have you tried
super.MapBi();
?– NoobSaibot