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.
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.
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.
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.
@Norm I used cntrl + f and found nothing on accessors or modifiers in the entire page. Could I be redirected specifically please?
Did you try searching the Internet with your favorite search engine?
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.
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?
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.
Mutators and also 'setters' (edit: too slow)