Results 1 to 4 of 4
- 09-19-2013, 02:27 AM #1
Member
- Join Date
- Sep 2013
- Posts
- 7
- Rep Power
- 0
Unclear instructions.. or I am confused.
In my UML for this program there is a class ( with variables constructors ect) called "gameException" with an arrow point to another class (with no variables or anything) named "Exception". on the very bottom of the instructions it says " The gameException should inherit from class Exception. upon construction it should call its super class constructor with a string describing the exception. Does this mean there are two separate classes, and I should make Exception the super class with and have gameException extends exception or what? I am confused on this OOP inheritance/exception part. do these instructions seem a little unclear or am I totally off?
- 09-19-2013, 03:34 AM #2
Member
- Join Date
- Sep 2013
- Posts
- 10
- Rep Power
- 0
Re: Unclear instructions.. or I am confused.
Take a look at Exception. What is it that you are unclear of?
- 09-19-2013, 03:49 AM #3
Re: Unclear instructions.. or I am confused.
<nitpick>
GameException
</nitpick>
- 09-19-2013, 08:49 AM #4
Re: Unclear instructions.. or I am confused.
It's telling you that GameException should extend Exception, and GameException should have a constructor that calls the Exception constructor that takes a String. (It's not clear what arguments the GameException constructor should take, but probably also a String.)
Get in the habit of using standard Java naming conventions!
Similar Threads
-
Dumb down these instructions please...
By Blondedude092 in forum New To JavaReplies: 1Last Post: 11-06-2012, 05:20 PM -
unclear what i missing
By silverspoon34 in forum New To JavaReplies: 2Last Post: 04-13-2011, 09:11 PM -
personalizing instructions
By _inase in forum New To JavaReplies: 4Last Post: 02-02-2011, 03:35 AM -
method unclear
By marie in forum New To JavaReplies: 0Last Post: 03-21-2010, 02:57 PM -
Unclear Requirement from client ... Ring a bell?
By galford23 in forum New To JavaReplies: 7Last Post: 01-08-2008, 06:31 AM
Bookmarks