- 11
- 0
- 约3.58千字
- 约 4页
- 2016-12-15 发布于江苏
- 举报
云南大学软件学院 实验报告
课程: Java程序设计实验 学期: 2012-2013学年 第一学期 任课教师: 陆歌浩
专业: 软件工程 学号: 20101120007 序号: 12 姓名: 孙金文 成绩:
实验7 继承
一、实验目的
练习Java中继承概念的应用。
二、实验内容
Program 1
Write a program called CollegeCourse that computes the cost of taking a college course. Include a constructor that requires a course ID number.?
Add a subclass Lab to compute a lab fee for a course that uses a lab.? Write a program UseCourse to use the classes.? Save the progras as CollegeCourse, Lab, and UseCourse.? Put them all in a package called edu.ynu.lab7.
Hints: how to compile and run your programs in the DOS
原创力文档

文档评论(0)