Question: Given the following code, which statements are true? Select the two correct answers. (a) Class A extends class B. (b) Class B is the superclass
Given the following code, which statements are true?

Select the two correct answers.
(a) Class A extends class B.
(b) Class B is the superclass of class A.
(c) Class A inherits from class B.
(d) Class B is a subclass of class A.
(e) Objects of class A have a field named value2.
(f) Objects of class B have a field named value1.
class A { protected int valuel; } class B extends A { } int value2;
Step by Step Solution
There are 3 Steps involved in it
d and f Given the declaration class B extends A we can ... View full answer
Get step-by-step solutions from verified subject matter experts
