About Question enthuware.ocpjp.v17.2.3688
Posted: Sun Apr 21, 2024 10:40 pm
Why the option "Making the Book class extend Document will eliminate all compilation errors." is correct?
1 - "sealed class Document implements Readable permits Book{ " there is no problem here, the trouble come from "non-sealed class Book implements Readable { }" because this last one "no extends the sealed class THAT permits it.
Am I wrong?
1 - "sealed class Document implements Readable permits Book{ " there is no problem here, the trouble come from "non-sealed class Book implements Readable { }" because this last one "no extends the sealed class THAT permits it.
Am I wrong?