asset.h

来自「C++参考书」· C头文件 代码 · 共 24 行

H
24
字号

#ifndef ASSET_H
#define ASSET_H

#include "property.h"
using namespace std ;

class Asset : public Property
{
	public:
		Asset( int id, int ty ) : Property( id ), type( ty ) { }
		virtual ~Asset( void ) { }

		virtual void schedule( void )
		{ cout << "Schedule for " << getName() << endl ; }

		enum Type { STRAIGHT, SLIDING } ;

	private:
		int type ;
} ;

#endif

⌨️ 快捷键说明

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