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 6 of 6

Thread: accessors and mutators

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    11
    My Mood
    Depressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default accessors and mutators

    Design Accessors and Mutators for the Employee object(employee class) variables and give examples of code snippets on how to implement those methods in the employeeTest class.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,138
    Thanks
    48
    Thanked 2,156 Times in 2,129 Posts

    Default Re: accessors and mutators

    Do you have an assignment that you are trying to get some one to do the work for you?

    Do you have any specific questions about your assignment?
    Please post your code and any questions about problems you are having.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    11
    My Mood
    Depressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: accessors and mutators

    i did everything in the assignment our lecturer hasnt taught anything about this and we in first year the question on thsi assignment are 2nd year level we don't have a hardcopy text book as we use tablets and ebook to access the book.....i have a java book but it has nothing that can help, iv already compiled and run the code and modified it

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,138
    Thanks
    48
    Thanked 2,156 Times in 2,129 Posts

    Default Re: accessors and mutators

    iv already compiled and run the code and modified it
    Have you solved your problem?
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Mar 2013
    Posts
    11
    My Mood
    Depressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: accessors and mutators

    yes but dont understand the question i sent in

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,138
    Thanks
    48
    Thanked 2,156 Times in 2,129 Posts

    Default Re: accessors and mutators

    I think another term for accessors and mutators is getters and setters. Try asking google for those terms.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. [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
  2. Constructor/Accessors/methods problem!!
    By gpelefty90 in forum Object Oriented Programming
    Replies: 4
    Last Post: September 26th, 2011, 12:56 AM