Question: Consider the following code written below: public interface A{ public String STR = BCS2143; public boolean number (int num); public String setUpperCase (String str);
Consider the following code written below: public interface A{ public String STR = "BCS2143"; public boolean number (int num); public String setUpperCase (String str); } public class B{} public class Question 2 Test {} a) Write the codes for class B according to the following information: - i. Class B is implementing interface A.
Step by Step Solution
There are 3 Steps involved in it
To implement interface A in class B you need to use the implements keyword followed by the inter... View full answer
Get step-by-step solutions from verified subject matter experts
