Question: Write a class call MyClass that has 2 properties -x is an int and y is a double, both of which are public. There
Write a class call MyClass that has 2 properties -x is an int and y is a double, both of which are public. There are two methods: Write a default constructor, initializing x and y to zero and a conversion constructor to initialize its values. readinput, which prompts the user for a value for x and then reads one, and prompts the users for a value for y and reads one. write Output, which displays both values.
Step by Step Solution
There are 3 Steps involved in it
Sure I can help you with that Based on the description given in the question heres how you could wri... View full answer
Get step-by-step solutions from verified subject matter experts
