File equality

Report a typo

You have a class hierarchy of files:

class File { /* fields and methods */ }

class ImageFile extends File { /* fields and methods */ }

class TextFile extends File { /* fields and methods */ }

and two objects:

File img = new ImageFile();

File txt = new TextFile();

Select all true statements.

Select one or more options from the list
___

Create a free account to access the full topic