#include <iostream> //using namespace std; class Sensor { private: int value; public: // your code here: implement int read() to return 100 Sensor():value(0){}; int read(){ value = 100; return value; } virtual ~Sensor(){}; }; int main() { Sensor s; std::cout << "Sensor reading: " << s.read(); return 0; }
Test Cases
Test Results
Input
Expected Output
Sensor reading: 100