标签:
1 protected: varType varName; 2 public: virtual varType get##funName(void) const { return varName; }
1 protected: varType varName; 2 3 public: virtual const varType& get##funName(void) const { return varName; }
1 protected: varType varName; 2 public: virtual varType get##funName(void) const { return varName; } 3 public: virtual void set##funName(varType var){ varName = var; }
1 protected: varType varName; 2 public: virtual const varType& get##funName(void) const { return varName; } 3 public: virtual void set##funName(const varType& var){ varName = var; }
1 protected: varType varName; 2 public: virtual varType get##funName(void);
1 protected: varType varName; 2 public: virtual const varType& get##funName(void);
1 protected: varType varName; 2 public: virtual varType get##funName(void); 3 public: virtual void set##funName(varType var);
1 protected: varType varName; 2 public: virtual const varType& get##funName(void); 3 public: virtual void set##funName(const varType& var);
标签:
原文地址:http://www.cnblogs.com/shouce/p/5313965.html