/*
class inheritance
override a virtual function from the base class
make a base function visible with USING even if it is overloaded in the derived class
https://forum.arduino.cc/t/using-method-in-derived-class-that-overload-base-class/1228091
2024-02-25
*/
#include "sensor.h"
Sensor2 s2;
SensorBase s1;
void setup(){
Serial.begin(115200);
s2.begin(1); // from derived class
s1.begin(1);
Serial.println(s1.myOtherMethod( 1) ) ; // from base class
Serial.println(s2.myOtherMethod( 3) ); // from derived class
}
void loop() {
}
//end