[Solved] ECE 325 Assignment 7-Type Compatibility and Generics

$25

File Name: ECE_325_Assignment_7-Type_Compatibility_and_Generics.zip
File Size: 489.84 KB

SKU: [Solved] ECE 325 Assignment 7-Type Compatibility and Generics Category: Tag:
5/5 - (1 vote)
In this assignment, you should submit three Java files for Question 1 and 2:ArrayExample.java,ArrayExam andArrayListExample.java. For Question 3 the difficult question, you should submit a folder that contains all modified files.These questions use a hierarchy of classes of simple geometric objects:GeometricShape.javaTwoDShape.javaThreeDShape.javaCircle.javaCone.javaRectangle.java Sphere.javaTest.javais a little test class that you can run to make sure the other classes are working.1. Java Arrays and Type Compatibility RulesLook at the skeleton for the main method inArrayExample.java. Add some additional statements to it so that the code compiles correctly, and when it is run, it raisesa java.lang.ArrayStoreException when adding a cone to geoshapes (Adding a circle should be OK). Here is the exception you should get:
File submissionsArunWoosaree.zipExport to portfolioEdit submissionMake changes to your submissionFeedback

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] ECE 325 Assignment 7-Type Compatibility and Generics
$25