Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By Junky

Thread: Unclear instructions.. or I am confused.

  1. #1
    learning.java is offline Member
    Join Date
    Sep 2013
    Posts
    7
    Rep Power
    0

    Default 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?

  2. #2
    Ubiquitous is offline Member
    Join Date
    Sep 2013
    Posts
    10
    Rep Power
    0

    Default Re: Unclear instructions.. or I am confused.

    Take a look at Exception. What is it that you are unclear of?

  3. #3
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,762
    Rep Power
    7

    Default Re: Unclear instructions.. or I am confused.

    <nitpick>
    GameException
    </nitpick>
    kjkrum likes this.

  4. #4
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default 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

  1. Dumb down these instructions please...
    By Blondedude092 in forum New To Java
    Replies: 1
    Last Post: 11-06-2012, 04:20 PM
  2. unclear what i missing
    By silverspoon34 in forum New To Java
    Replies: 2
    Last Post: 04-13-2011, 08:11 PM
  3. personalizing instructions
    By _inase in forum New To Java
    Replies: 4
    Last Post: 02-02-2011, 02:35 AM
  4. method unclear
    By marie in forum New To Java
    Replies: 0
    Last Post: 03-21-2010, 01:57 PM
  5. Unclear Requirement from client ... Ring a bell?
    By galford23 in forum New To Java
    Replies: 7
    Last Post: 01-08-2008, 05:31 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •