2022/5/27hgc_experience

 return itsAge;

 return itsWeight;
 Number = 1;
 
   Number = 0;

        cout << "DerivedClass Destruction.Number=" << getNumber() << endl;
public : 
    void InitR(float a , float b, float c, float d) {
        A = a;
        B = b;
        C = c; 
        D = d;
    }
    void Move(float a ,float b ) {
        A += a; B+= b;
    }
    float  GetX() { return  A; }
    float  GetY() { return  B; }
    float  GetH() { return  D; }
    float  GetW() { return  C; }
private : 
    float A, B, C, D;
凉心哥哥的小宝藏 文章被收录于专栏

c++

全部评论
点赞收藏评论三联!
点赞 回复 分享
发布于 2022-05-27 12:08

相关推荐

不愿透露姓名的神秘牛友
07-09 12:10
直接上图
牛客13578115...:改得一般,不值80
点赞 评论 收藏
分享
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
1
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务