Question 13 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 13 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given:

class CD {

int or;
ep(int r){
this. rsr;

)
)

class DVD extends CD {

int c;
DvD(int r, int c) {
#? line m1

y
t
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?

CA) super. = ry
this.c =

© B) super(r);
this (c);

© C) super (r);
this.c = c

©D) this.e =r
super (c);

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C.