Question: *Java Package location Interface3D an interface that ThreeDimension implements public interface abstract methods for getX(), getY(), getZ(), and set3D() set3D() has one argument for a

*Java

Package location

  • Interface3D an interface that ThreeDimension implements
    • public interface
    • abstract methods for getX(), getY(), getZ(), and set3D()
      • set3D() has one argument for a ThreeDimension object
    • default public method distance()
      • returns the primitive double 0.0
      • one argument for a ThreeDimension object
      • prints "Default method - cannot calculate the distance to " where is the ThreeDimension
      • Example output:

Default method - cannot calculate the distance to (3, -3, 5)

//I get everything else but I don't understand how to do the instruction in bold. Are they using the same object or a different one. As for the double 0.0 can I use the return method or is something else more appropriate if it is the right move should I do it after the System.out.print? May you please help me and explain your work

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!