javauny.edu/webapps/assessment/take/take.jsp?course assessment id- 1341216 18course id 1781449 18contet d4 Question Completion Status: asundsaLSILD.aARSIIALLIOnsanh.amoue01 2uADIAL Question 4 a) Write a few sentences describing when it is necessary to use type casting for objects in a Java program. b) What is the purpose of the instanceof operator? c) Refer to the following class structure to write a few Java statements that involve type casting of objects public clasa LaundryMachine 1 elass WashingMachine extenda LaundryMachine class Dryer extends LaundryMachine Show transcribed image text uny.edu/webapps/assessment/take/take.jsp?course assessment id- 1341216 18course id 1781449 18contet d4 Question Completion Status: asundsaLSILD.aARSIIALLIOnsanh.amoue01 2uADIAL Question 4 a) Write a few sentences describing when it is necessary to use type casting for objects in a Java program. b) What is the purpose of the instanceof operator? c) Refer to the following class structure to write a few Java statements that involve type casting of objects public clasa LaundryMachine 1 elass WashingMachine extenda LaundryMachine class Dryer extends LaundryMachine
Expert Answer
Answer to uny.edu/webapps/assessment/take/take.jsp?course assessment id- 1341216 18course id 1781449 18contet d4 Question Completi…