#include < iostream, h >
class test {
private : int x, y;
public : void test1 ( int a, int b) { x = a ; y = b;}
int max( );
};
int test:max( ) {if(x>y) return x;else return y;}
void main( ){
test a;
a. test1 ( 1,3);
cout << a. max ( ) << endl;
}
INT TEST:MAX( ) 成员函数定义时用“::”