I have two classes: A and B
Class B looks like this: B extends A
I need to use some methods that has within Class A , in class B
.
How do I do it?
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;
}
}