What type of method provides a safe way for code outside a class to retrieve the values of attributes,without exposing the attributes in a way that could allow them to be changed by code outside the method?
A) accessor
B) mutator
C) setter
D) class
Correct Answer:
Verified
Q5: Which method is automatically called when you
Q6: Which method is automatically executed when an
Q7: All class definitions are stored in the
Q8: All instances of a class share the
Q9: A class can be thought of as
Q11: Which section in the UML holds the
Q12: A mutator method has no control over
Q13: Which attributes belong to a specific instance
Q14: What is the special name given to
Q15: What does the acronym UML stand for?
A)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents