您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Reflect Index

Reflect Page # 11

Review Question 11

In this unit it was stated that it requires four different classes to allow a Java program to read a text file one line at a time. This is because we could not make BufferedReader a subclass of FileInputStream.

However, if Java allowed multiple inheritance these problems could be overcome, and we could do this job with only one class. How is this?

Discussion of Review Question 11

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg