⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cars.h

📁 C++参考书
💻 H
字号:

#ifndef CARS_H
#define CARS_H

#include "vehicle.h"
#include "asset.h"
#include "expense.h"
using namespace std ;

class CompanyCar : public Vehicle, public Asset
{
	public:
		CompanyCar( int id, int year, const string &model )
			: Vehicle( year, model ), Asset( id, Asset::STRAIGHT )
		{ }
} ;

class LeaseCar : public Vehicle, public Expense
{
	public:
		LeaseCar( int id, int year, const string &model )
			: Vehicle( year, model ), Expense( id )
		{ }
} ;

#endif

⌨️ 快捷键说明

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