桥接模式

用桥接模式实现在路上开车这个问题,其中,车可以是car或bus,路可以是水泥路或沥青路。 实验要求: 1. 画出对应的类图; 2. 提交源代码; 1. #include <iostream> 2. 3. using namespace std; 4. 5. class Vehicle{ 6. pub
posted @ 2023-11-23 08:25  YE-  阅读(8)  评论(0编辑  收藏  举报