Question: java programming need help please! Design a class named MyDouble . The class contains: An double data field named value that stores the double value
java programming need help please!
Design a class named MyDouble. The class contains:
An double data field named value that stores the double value represented by this object.
A constructor that creates a MyDouble object for the specified double value.
A getValue method that returns the double value.
The methods equals(double) and equals(MyDouble) that return true if the value in this object is equal to the specified value.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
