Consider the code given below
class Shape{
public void area(){
System.out.println("Area exists");
}
public void sides(){
System.out.println("Sides may exist");
F
5
class Circle extends Shape{
public void area(){
System.out.println("Circle area");
F
}
class Rectangle extends Shape{
public void area(){
System.out.println("Rectangle area");
}
public void sides(){
System.out.println("Four sides") ;
+
}
public class Test{
static void display(Shape[] s){
for(int i = 0; i < s.length; i++){
s[i] .area();
s[i].sides();
}
}
public static void main(String[] args){
Shape[] s = {new Circle(), new Rectangle()}; // LINE 1
display(s) ;
}
Choose the correct option.
A.B.C.
A published solution is not available for this question yet.
**MLT**
**Section Id :** 64065338402
**Section Number :** 5
**Section type :** Online
**Mandatory or Optional :** Mandatory
**Number of Questions :** 21
**Number of Questions to be attempted :** 21
**Section Marks :** 100
**Display Number Panel :** Yes
**Group All Questions :** No
**Enable Mark as Answered Mark for Review and**
Yes
**Clear Response :**
**Maximum Instruction Time :** 0
A published solution is not available for this question yet.