∷ 性别:
∷ 状态:
|
|
|
|
|
|
|
|
|
|
|
|
|
5come5帮你背单词 [ pastime /'pa:staim/ n. 消遣,娱乐
]
C++怎么调用爷爷的方法~
RTRT
class shape{
public: void Print() { cout <<"I'm shape .\n";} void draw(){cout <<"I'm drawing .\n";} void move(){cout <<"I'm moving .\n";} void hide(){cout <<"I'm hiding .\n";} void show(){cout <<"I'm showing .\n";} };
class Quadrangle : public shape { public: void Print() { cout << "I'm Quadrangle\n"; } }
class Diamond : public Quadrangle { public: void Print() { cout << "I'm Diamond.Diamond is Quadrangle\n"; }
};
diamond怎么调用爷爷的DRAW等方法?
|