Marcus, the method is overloaded with a double-valued constructor that passes a double value. So, the object inside, which is 5.5, appears to be double. Then, it is returned 5.5*5.5 (a * a),which is also equivalent to 30.25.
View All Comments
| View Tutorial