Add an isACube() method to the RectangularPrism class.

What will be an ideal response?


```
Solution is part of Instructor’s implementation of RectangularPrism.

/**
* Determine if this RectangularPrism is a cube.
* @return boolean true if this RectangularPrism is a cube.
*/
public boolean isACube()
{
return this.depth == this.getHeight() && this.depth == this.getLength();
}

```

Computer Science & Information Technology

You might also like to view...

Which of the following is not true regarding collaborating and presenting?

A) In business, collaborating effectively with your coworkers is a valuable skill. B) Microsoft provides many methods for collaboration through its Office applications and SkyDrive. C) With Microsoft's SkyDrive and PowerPoint Web App you can share your presentation and collaborate with anyone who has PowerPoint installed. D) With the PowerPoint application itself you can add comments to explain to the others your thoughts on a particular topic and even keep track of changes that others have made or suggested.

Computer Science & Information Technology

By selecting the ________ option, you can make sure that data entered into a related table first exists in the primary table

A) sort B) form wizard C) referential integrity D) query wizard

Computer Science & Information Technology

The search tools in the Search screen in Windows 8 are more full-featured than the tools in File Explorer

Indicate whether the statement is true or false

Computer Science & Information Technology

Which what-if analysis tool is best used for creating optimization models?

A) Two-variable data table B) One-variable data table C) Solver D) Goal Seek

Computer Science & Information Technology