freertos/Demo/Common/X.hpp

17 lines
280 B
C++
Raw Normal View History

2024-07-13 16:33:13 +00:00
#ifndef X_HPP
#define X_HPP
class X {
private:
int m; // the representation (implementation) is private
public:
// the user interface is public
X(int i = 0); // constructor (initialize the data member m)
int mf(int i); // a member function
};
#endif // X_HPP