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

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

This note was uploaded on 08/18/2011 for the course COMPUTER S CSC 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.

Ask a homework question - tutors are online