Question: please ans quickly A & B A. Consider the following two interfaces P1 and P2. Complete the following tasks now: i.Write an interface named 3

please ans quickly A & B
A. Consider the following two interfaces "P1" and "P2". Complete the following tasks now: i.Write an interface named "3" inheriting both "P1" and "P2" ii. Now write a concrete class named "Concrete" inheriting from "P3" and overriding the required methods with proper signature i.e. proper access specifier, return type and parameters N.B. Just write only the solution codes interface P1 { interface P2 double h2 (int x); String kl(); } void k2(); B. Answer the following questions for the following "Fall" class: i.Suggest modifications for variable "x" so that Line Number 6 can be executed without any error ii.Suggest modifications for variable "y" so that value of it cannot be changed after Line Number 3 1 public class Fall / 2 int x; inty- 213; 4 public static void main(String[] args) { * - 50; // This should work after modification of x } 7 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
