IS5103 Week 6 (Quiz)
1. Analyze the following code: public class Test extends A {public static void main(String[] args) {Test t = new Test();t.print();}} class A {String s; A(String s) {this.s = s;} public void print() {System.out.println(s);}} 1. The program would compile if a default constructor…
