Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: accessors and modifier method tutorials?

  1. #1
    Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default accessors and modifier method tutorials?

    Please respond below if you have good accessor or modifier method tutorials. I'm looking for GOOD tutorials. Video tutorials are preferred, but I'm fine if the tutorial isn't one. Thank you.



  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,149
    Thanks
    65
    Thanked 2,722 Times in 2,672 Posts

    Default Re: accessors and modifier method tutorials?

    Moved out of What's wrong section.

    The java tutorials: http://docs.oracle.com/javase/tutori...ybigindex.html
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: accessors and modifier method tutorials?

    @Norm I used cntrl + f and found nothing on accessors or modifiers in the entire page. Could I be redirected specifically please?

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: accessors and modifier method tutorials?

    Did you try searching the Internet with your favorite search engine?

  5. #5
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,149
    Thanks
    65
    Thanked 2,722 Times in 2,672 Posts

    Default Re: accessors and modifier method tutorials?

    I don't think accessors or modifiers are defined in java as such. They are coding techniques that people have designed.

    Try an internet search engine.
    If you don't understand my answer, don't ignore it, ask a question.

  6. #6
    Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: accessors and modifier method tutorials?

    So then, I should just search for the definitions? Okay. Your right, I should be using my search engine. I feel stupid because I tried finding tutorials on the subjects with google. Makes me feel like I'm wasting time searching for tutorials, when I could just find the techniques. Thanks guys. I'll totally do that.

    XD

    --- Update ---

    modifiers are also called "mutators" right?

  7. #7
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: accessors and modifier method tutorials?

    setters are also called mutators, getters are also called accessors.

    You can find more than definitions. You'll find examples and explanations for why accessors/mutators are a good idea and if you're real lucky, you'll find an article on why they're the worst idea ever invented. As Norm said, the concept is not specific to Java but a programming technique invented to enforce (or violate) object encapsulation. Accessors/mutators are techniques used throughout OOP languages just as programming patterns like Observer, Callback, Event Queue, etc. are. You'll find discussion, articles, Java examples, etc., but you won't find them a topic exclusive to Java SE.

  8. #8
    Member Kewish's Avatar
    Join Date
    Apr 2013
    Location
    Australia
    Posts
    116
    Thanks
    10
    Thanked 17 Times in 14 Posts

    Default accessors and modifier method tutorials?

    Mutators and also 'setters' (edit: too slow)

Similar Threads

  1. Private access modifier
    By pksksit in forum What's Wrong With My Code?
    Replies: 5
    Last Post: December 13th, 2013, 03:14 AM
  2. Replies: 1
    Last Post: August 5th, 2013, 02:49 PM
  3. accessors and mutators
    By Dingwana in forum Java Theory & Questions
    Replies: 5
    Last Post: March 25th, 2013, 01:02 PM
  4. [SOLVED] Another question abt mutators and accessors...
    By Vessel06 in forum What's Wrong With My Code?
    Replies: 16
    Last Post: March 12th, 2013, 10:18 PM