Question: DO IT ASAP I HAVE NO TIME What does the following code means? Which of the X, Y. Z., and Ware interfaces, which are classes?
DO IT ASAP I HAVE NO TIME
What does the following code means? Which of the X, Y. Z., and Ware interfaces, which are classes? public class X extends Y implements Z, W X: Y: Class Interface z : W: You are given the UML diagram. There are 6 classes, LabDriver is the dever class, Movable is an Interface class,Shape, Rectangle, Square, and Sphere are classes that are in an Inheritance relationship. Show which of the following statements will correctly execute. (Note: There is no problem with the parameters of the constructors, assume that constructors always work correctly) > Shape LabDelvet Welt Toge Point > Movable main(String args): vold Mis Circular Boolean implements Mpoints: Array.itPoint> move(int newx int newy) : void Marea: double Nperimeter: double + Shape(int letTops it lett Topy): calculatsPoints vold (abstract) calculate Areal: vold (abstract) calculatsPerimets:0:void(abstract) +toString): Strine Rectangle Square Sphere wwidth: int Hradius:int Mheight:int wwidth: int Rectangle(int x toy. Int holokw): calculatepoints(): vold calculate Areals vold + Square int x, int Y. lot w): calculatePoints(): vold . calculateAreal): vold intiniatiminal Sphere(int x Int. It w): calculate Points(): void calculatsArea(): vold Square Sphere wwidth: int radius: int Rectangle wheight:int width: int + Rectanglelint x Inty, int hint w): calculatePoints(): vold + calculate Areal: void calculate Perimeter: vold + toString(): String * Square(int x Inty. Int w): + cakulate Points vold + Fakulate Area(): vold calculate Perimeter(): vold toString(): String Sphere(int x. Int . Int w): calculatePointst): vold akulateArea: vold cakulate Perimeter(): vold toStringl) : String a) Movable m = new Rectangle (100, 100, 50.50): b) Movable m = new Shape (100, 100); Works Correctly Glves Complle Error c) Shapes new Rectangle (100, 100, 50, 50): d) Shapes- new Shape (100,100): c) Movable m = new Movable(); Rectangler = new Square (100, 100,50)