Results 1 to 3 of 3

Thread: Java help!!

  1. #1
    andrewkay is offline Member
    Join Date
    Oct 2011
    Posts
    7
    Rep Power
    0

    Default Java help!!

    thanks for the help
    Last edited by andrewkay; 11-05-2011 at 11:02 PM.

  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 Re: Java help!!

    Presumably you have some different variables in the super class and the subclass, any variables passed into this constructor that should be initialized in the super class should be passed in through super as you have done. For variables in the subclass, simple assignments work. Also, make sure you follow the requirements and check the pre and post conditions (perhaps throw an IllegalArgumentException if they fail).

  3. #3
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

Posting Permissions

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