Results 1 to 4 of 4

Thread: Set/ Get Method

  1. #1
    ITStudent is offline Member
    Join Date
    Jul 2013
    Posts
    25
    Rep Power
    0

    Default Set/ Get Method

    Hey guys I would want to expand my knowledge about the Mutator method. Any insights about this???

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,510
    Rep Power
    5

    Default Re: Set/ Get Method

    What have you tried? This is basic stuff so you ought to read through the tutorials linked in my signature.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  3. #3
    ITStudent is offline Member
    Join Date
    Jul 2013
    Posts
    25
    Rep Power
    0

    Default Re: Set/ Get Method

    Quote Originally Posted by jim829 View Post
    What have you tried? This is basic stuff so you ought to read through the tutorials linked in my signature.

    Regards,
    Jim
    Thank you! I'm just a newbie to this so...... Yeah I guess this would be basic.

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

    Default Re: Set/ Get Method

    Do you have a specific question? Set method sets a value by assigning the parameter to an instance variable. Get method simply gets the value by returning it. Not that difficult.

Similar Threads

  1. Replies: 7
    Last Post: 04-11-2013, 05:31 AM
  2. Replies: 4
    Last Post: 03-28-2013, 08:40 PM
  3. Replies: 2
    Last Post: 03-23-2012, 04:53 AM
  4. Replies: 1
    Last Post: 10-27-2011, 07:16 AM
  5. Replies: 1
    Last Post: 10-17-2011, 01:00 AM

Posting Permissions

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