- B Study The Interface Code Given Below And Guess The Output Provide Justification To Support Your Answer Interface A 1 (233.61 KiB) Viewed 13 times
b. Study the interface code given below and guess the output (provide justification to support your answer): interface A
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
b. Study the interface code given below and guess the output (provide justification to support your answer): interface A
b. Study the interface code given below and guess the output (provide justification to support your answer): interface A int x=10; void m1(); public class B implements A int x=20; public void ml()) { System.out.println("Interface"); } public class Test { Public static void main(String args[]) { A a-new B(); a.m1(): System.out.println(a.x); ISMI