Question: Which of the following is the correct syntax to indicate that class A is a subclass of B? a. public class B extends A {

Which of the following is the correct syntax to indicate that class A is a subclass of B?

a. public class B extends A {

b. public class A : super B {

c. public A(super B) {

d. public class A extends B {

e. public A implements B {

Step by Step Solution

3.43 Rating (169 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Correct syntax to ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Building Java Programs A Back to Basics Approach Questions!