Given the two Java classes: Which two code snippets, added independently at line ***, can
make the Buzzword class compile?
A.
super (100);
B.
super ();
C.
super (“Buzzword”);
D.
this (100);
E.
this ();
F.
this (“Buzzword”);
Given the two Java classes: Which two code snippets, added independently at line ***, can
make the Buzzword class compile?
A.
super (100);
B.
super ();
C.
super (“Buzzword”);
D.
this (100);
E.
this ();
F.
this (“Buzzword”);
answer: C F
A, D: the constructor with int type parameter is private.
B, E: since Word and Buzzword already define the constructor, java wouldn’t add default constructor automatically.
REP:C,F