Object Oriented Programming (OOPs)

© examsiri.com
Question : 8 of 72
 
Marks: +1, -0
Given:
1. class Super {
2.   private int a;
3.   protected Super(int a) { this.a = a; }
4. }
...
5. class Sub extends Super {
6.   public Sub(int a) { super(a); }
7.   public Sub() { this.a = 5; }
8. }

Which two, independently, will allow Sub to compile?
Go to Question: