Menu

[solved]-Need Help Asap Class Geometricobject Class Circle Extends Geometricobject Class Cylinder E Q39053529

// I need help ASAP!!

class GeometricObject { }

class Circle extends GeometricObject { }

class Cylinder extends Circle { }

class Rectangle extends GeometricObject { }

GeometricObject g = new GeometricObject ( );

Circle c = new Circle ( );

Rectangle r = new Rectangle ( );

Cylinder cy = new Cylinder ( );

Study the objects created in the above code and determine whichof the following expressions will evaluate to false?

1.c instanceof GeometricObject

2.cy instanceof GeometricObject

3.g instanceof GeometricObject

4.r instanceof Circle

Expert Answer


Answer to // I need help ASAP!! class GeometricObject { } class Circle extends GeometricObject { } class Cylinder extends Circle {… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *