|
|
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

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