b. Study the interface code given below and guess the output (provide justification to support your answer): interface A
-
answerhappygod
- Site Admin
- Posts: 899604
- 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!