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.

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

1 Expert Approved Answer
Step: 1 Unlock

Sure I can help you with that Based on the description given in the question heres how you could wri... View full answer

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 Programming Questions!