∷ 性别:
∷ 状态:
|
|
|
|
|
|
|
|
|
|
|
|
|
5come5帮你背单词 [ wrong /roŋ/ a. 错误的,不正常的,不好的,不合适的,不道德的,不正当的;ad. 错误地,不正确
]
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等方法?
|