nerdexam
Oracle

1Z0-808 · Question #48

1Z0-808 Question #48: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-808 to reveal the answer and full explanation for question #48. The question stem and answer options stay visible for context.

Working with Inheritance

Question

class CD { int r; CD(int r) { this.r=r; } } class DVD extends CD { int c; DVD(int r, int c) { // line n1 } } And given the code fragment: DVD dvd = new DVD(10, 20); Which code fragment should you use at line n1 to instantiate the dvd object successfully?

Options

  • Asuper.r = r; this.c = c;
  • Bsuper(r); this(c);
  • Csuper(r); this.c = c;
  • Dthis.c = r; super(c);

Unlock 1Z0-808 to see the answer

You've previewed enough free 1Z0-808 questions. Unlock 1Z0-808 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#constructor chaining#super keyword#inheritance#subclass initialization
Full 1Z0-808 Practice