Given:
1. abstract class Shape {
2. Shape ( ) { System.out.println ("Shape"); }
3. protected void area ( ) { System.out.println ("Shape"); }
4. }
5.
6. class Square extends Shape {
7. int side;
8. Square int side {
9. /* insert code here */
10. this.side = side;
11. }
12. public void area ( ) { System.out.println ("Square"); }
13. }
14. class Rectangle extends Square {
15. int len, br;
16. Rectangle (int x, int y) {
17. /* insert code here */
18. len = x, br = y;
19. }
20. void area ( ) { System.out.println ("Rectangle"); }
21. }
Which two modifications enable the code to compile? (Choose two.)
MPignaProTech
1 month, 4 weeks agoasdfjhfgjuaDCV
10 months, 1 week agosteefaand
11 months, 1 week agor1muka5
1 year, 10 months agoEden0516
2 years agoWilsonKKerll
2 years, 10 months agoTarik2190
3 years, 8 months agobnagaraja9099
3 years, 8 months ago