Results 1 to 7 of 7
  1. #1
    thorobred is offline Member
    Join Date
    Feb 2011
    Posts
    33
    Rep Power
    0

    Default need help with subclasses

    Hello Im stuck on setting up a sub class for this program I wrote on rock, paper, scissors, lizard, spock. If someone can help me I'll appreciate it

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Your statement tells us what you want, but it's overly vague, and we can't read your mind, please provide us with more information? What do you want to subclass, what have you tried so far?

    In general you want to look at the classes you want and look for common stuff, then make a base class with the common parts and subclass to a more detailed class from there.

  3. #3
    thorobred is offline Member
    Join Date
    Feb 2011
    Posts
    33
    Rep Power
    0

    Default

    Sry the reason I want a subclass is that I have a GUI and the code into the one and its not running

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by thorobred View Post
    Sry the reason I want a subclass is that I have a GUI and the code into the one and its not running
    Again, there's no way we can help you based on the information that you provide. It's just way too general and vague. Please read the link in my signature links below on "how to ask smart questions". It will give you tips on how to ask questions that are answerable.

  5. #5
    thorobred is offline Member
    Join Date
    Feb 2011
    Posts
    33
    Rep Power
    0

    Default

    I figured out the subclasses part, I'm going to try to elaborate better. I am trying to run a game of rock, paper scissors, lizard, spock. I have pretty much most of the code correct except I am have trouble writting the code to run the simulation. On my java file attachment the code is at the bottom. Could you hlep me fix this problem??

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by thorobred View Post
    I figured out the subclasses part, I'm going to try to elaborate better. I am trying to run a game of rock, paper scissors, lizard, spock. I have pretty much most of the code correct except I am have trouble writting the code to run the simulation. On my java file attachment the code is at the bottom. Could you hlep me fix this problem??
    "On my java file attachment the code is at the bottom."

    You are kidding us, right? This has to be a joke because you really can't get more cryptic than this.

  7. #7
    thorobred is offline Member
    Join Date
    Feb 2011
    Posts
    33
    Rep Power
    0

    Default

    I'm sry I thought that there was an attachment on my first post, its that code at the very bottom of this java file
    Attached Files Attached Files

Similar Threads

  1. Inheritance and Subclasses
    By whateverme in forum New To Java
    Replies: 6
    Last Post: 02-10-2011, 01:47 PM
  2. Dynamic Subclasses?
    By MrFish in forum Advanced Java
    Replies: 5
    Last Post: 11-07-2010, 01:28 AM
  3. Lost with subclasses
    By vinyacam in forum New To Java
    Replies: 3
    Last Post: 05-09-2010, 07:12 PM
  4. Generics and subclasses
    By Sven in forum Advanced Java
    Replies: 1
    Last Post: 12-22-2008, 06:06 PM
  5. Hibernate subclasses
    By Ed in forum JDBC
    Replies: 2
    Last Post: 07-02-2007, 04:42 PM

Posting Permissions

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