Given:
Which code fragment should you use at line n1 to instantiate the dvd object successfully?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Given:
Which code fragment should you use at line n1 to instantiate the dvd object successfully?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Answer is C.
A and D will implicitly call super() which doesn’t exist.
and B is illegal cant call constructor with super and this.
C is correct because you can call super then assign using this.
Indeed, C is correct
C