cars.h
来自「C++参考书」· C头文件 代码 · 共 27 行
H
27 行
#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 + =
减小字号Ctrl + -
显示快捷键?