23

所属分类:C#编程
开发工具:Visual C++
文件大小:1KB
下载次数:10
上传日期:2010-12-18 13:29:32
上 传 者ccm3313117
说明:  2.某出版系统发行图书和磁带,利用继承设计管理出版物的类。要求如下:建立一个基类Publication存储出版物的标题title、出版物名称name、单价price及出版日期date。用Book类和Tape类分别管理图书和磁带,它们都从Publication类派生。Book类具有保存图书页数的数据成员page,Tape类具有保存播放时间的数据成员playtime。每个类都有构造函数、析构函数,且都有用于从键盘获取数据的成员函数inputData(),用于显示数据的成员函数display()。
(2. A publishing books and tape distribution, design and management of publications using class inheritance. Requirements are as follows: the establishment of a base class storage publication title Publication title, publication name name, unit price and the date of publication date. Tape with Book class and the class for managing the books and tapes, which are derived from the Publication class. Save the book pages Book class data members page, Tape class data members save time playing playtime. Each class has a constructor, destructor, and have used the data from the keyboard to get the member function inputData (), the member function to display the data display ().)

文件列表:
23.txt (3204, 2010-12-18)

近期下载者

相关文件


收藏者