单项选择题
下列程序的输出结果是( )。
#include<iostream.h>
class Myclass {
public:Myclass(int i=0,intj=0)
{ x=i;
y=j;
}
void show( ) { cout < < "x=" < < x < < " " < "y=" < < y < < end1;}
void show( )const { cout < < "x=" < < " " < < "y=’’ < < y < < end1;}
privated:
int x; int y;
};
void main( )
{ Myclass my1(3,4);
const my2(7,8);
my1.show( );my2.show( );}
A.line 4
B.line 6
C.line 7
D.line 8