{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CSC113_Tutorial9 - color and gear-The constructor Parc(int...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
King Saud University College of Computer and Information Systems, Department of Computer Science CSC 113: Java Programming-II, Spring2011, April 30, 2011 Tutorial #9 : Exception Handling Translate the following UML diagram into java code. - The method displayAll() should print all the attributes of the object. For example, if invoked as a method of the Car class, it has to print model, year,
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: color and gear. -The constructor Parc (int size) should contain NegativeArraySizeException. -the method hasManualGear(): Boolean should contain throwing to a general exception and the main should catch it and print error message if the gear attribute contain values other than manual or auto....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online