( 30 )有如下程序:
#include<iostream>
using namespace std;
class AA{
lilt k;
protected:
int n;
void setK ( int k ) { this->k=k;}
public:
void setN ( int n ) { this->n=n;}
};
class BB: public }{/* 类体略 */};
int main () {
BB x_ ; //1
x .n=1; //2
x.setN ( 2 ) ; //3
x.k=3; //4
x .setK ( 4 ) ;
return 0;
}
在标注号码的四条语句中正确的是
A ) 1
B ) 2
C ) 3
D ) 4