Which code fragment should you use at line n1 to instan…

Given:

Which code fragment should you use at line n1 to instantiate the dvd object successfully?

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



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Snr DingDong

Snr DingDong

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.

renko

renko

Indeed, C is correct