∷ 性别:
∷ 状态:
|
|
|
|
|
|
|
|
|
|
|
|
|
5come5帮你背单词 [ today /tə'dei/ ad. & 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等方法?
|