class CFather
{
public:
    CFather();
    virtual ~CFather();
    
public:
    virtual void test();
    //virtual void getHouse() = 0;
    
public:
    int b;
    const static int c = 5;  //声明此变量使用const,不在使用定义式(int CFather::c);
};

 

相关文章:

  • 2022-02-17
  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
  • 2022-12-23
  • 2021-06-22
  • 2021-11-30
  • 2021-06-10
猜你喜欢
  • 2021-05-22
  • 2021-11-30
  • 2021-08-21
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案