Given:
And given the code fragment:
Book book1 = new EBook ();
Book1.readBook();
Which option enables the code to compile?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Given:
And given the code fragment:
Book book1 = new EBook ();
Book1.readBook();
Which option enables the code to compile?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
D
Test D.
A , D
D, because do Book book1 = new EBook(); if was A not is posible do a instance of Ebook because is a abstract class.
LA D.
D, if you make eBook abstract then Book book1 = new EBook (); will not compile due to trying to create object from an abstract class.
D