for (int i=0; i
{if (s[i] instance of Box)
System.out.print((Box)s[i].volume());
if(s[i] instance of Rectangle&&!(s[i] instance of Box)
System.out.print((Rectangle)s[i].area());
if(s[i] instance of shape&&!(s[i] instance of Box)&&!
(s[i] instance of Rectangle))
System.out.print(s[i].get color()}
}
.
.
.
.
.
this is main class.
(i need the other class)
class shape?
class rectangle?
class box?