摘要:
include include using namespace std; class Location { private: string x; string y; public: Location(string x, string y) { // TODO Auto-generated const 阅读全文
摘要:
本次实验属于模仿型实验,通过本次实验学生将掌握以下内容: 1、理解桥接模式的动机,掌握该模式的结构; 2、能够利用桥接模式解决实际问题。 [实验任务一]: 用桥接模式实现在路上开车这个问题,其中,车可以是car或bus,路可以是水泥路或沥青路。 public class Bus implements 阅读全文