Thursday, 6 September 2012

Assume that File is an abstract class and has toFile() methoD. ImageFile and BinaryFile are concrete classes of the abstract class File. Also, assume that the method toFile() is implemented in both Binary File and Image File. A File references an ImageFile object in memory and the toFile method is called, which implementation method will be called? | Java Springs

A. Binary File
B. Image File
C. Both File and Binary Files
D. None of the above

Ans: B

No comments: