thank you,
I should be able to take it from here, will mail back if I am stuck again..
Type: Posts; User: upad
thank you,
I should be able to take it from here, will mail back if I am stuck again..
My code does not work as expected which is:
(0,0)
(3,6)
(3.1,4.0)
Actual result:
(0,0)
(3,6)
(0,0)
As I said, I am just learning about classes and objects, and am not sure how to define constructors to handle different data types.kindly point me in the right direction..
thanks,
Sarita
Sorry,
I skipped the toString method iin the above code (but yes, I did include that in my code).
I expect the below main method to print Points of data types: int as well as double.therefore,...
Hi,
I'm a newbie in programming, trying to work on a practice problem in classes and objects. I tried the following to construct Point of type double, but when I print Point C, it prints 0,0; can...