问答题
定义一个抽象类Memo,成员数据包括:(1) 时间begin_time,为string类对象;(2) 地点place,string类对象;(3) 内容content,string类对象。从Memo派生出两个类:Meeting和Interview。Meeting中还包括结束时间end_time,为string类对象。Interview还包括被访问人interviewee,为string类对象。这几个类都有成员函数show( )来显示各数据成员的值。分别设计这三个类,并在主函数中进行测试,实现多态性。
答案:
以下是使用C++语言定义的抽象类Memo以及从Memo派生的两个子类Meeting和Interview的示例代码,以及一...