Which fragment, inserted in the Books interface, enables the code to compile?

Given: Which fragment, inserted in the Books interface, enables the code to compile?

Given: Which fragment, inserted in the Books interface, enables the code to compile?

A.
public abstract String type; public abstract String getType();

B.
public String type = “Fiction”; public abstract String getType();

C.
public static String type; public abstract String getType();

D.
public String type = “Fiction”; public static String getType();



Leave a Reply 4

Your email address will not be published. Required fields are marked *


ARJIT GAUTAM

ARJIT GAUTAM

B is correct one !!