文件名称:23
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1006byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.