carton.h

来自「一本语言类编程书籍」· C头文件 代码 · 共 16 行

H
16
字号
// Carton.h - defines the Carton class with the Box class as base
#ifndef CARTON_H
#define CARTON_H 
#include "Box.h"                                // For Box class definition

class Carton : public Box {
  public:
    Carton(const char* pStr = "Cardboard");     // Constructor
    
    ~Carton();                                  // Destructor
      
  private:
    char* pMaterial;
};
#endif 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?