17 lines
280 B
C++
17 lines
280 B
C++
|
#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
|
||
|
|