Question: please I need it urgent thank in java please 1.(10 pts.) Given the Geometricobject and Triangle classes below: public class Geometricobject ( private String color-white

 please I need it urgent thank in java please 1.(10 pts.)

please I need it urgent thank in java please

1.(10 pts.) Given the Geometricobject and Triangle classes below: public class Geometricobject ( private String color-"white private boolean filled; private java.util Date datecreated /Construct a default geometric object public Geometricobjectf dateCreated new java.util.Date) public class Triangle extends Geometricobject And the following declarations. Triangle tril new Triangle Geometricobject gol new GeometricobjectO circle all the Boolean expressions that are true below. i) (tril instanceof GeometricObject) ii) (gol instanceof Geometricobject) iii) (tril instanceof Triangle) iv) (gol instanceof Triangle) b) Given the declaration of tril above, can the following statement be compiled? Why or why not? Geometricob ject go2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!