Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Match each definition with the ONE term that BEST describes it Another term for

ID: 3667929 • Letter: M

Question

Match each definition with the ONE term that BEST describes it Another term for member function The principle that everything about an object should be in a single self-contained unit The process of identifying only the relevant attributes of something and ignoring other attributes This membver function is called automatically when an object is created This type of member function promises not to change any of the object's data The part of an object that can be accessed by outside code this describes how the object is supposed to behave Sometimes called a getter this passes data from the object to the outside world Sometimes called a 'setter,' this member function passes data from the outside world into the object mutator encapsulation interface method accessor constructor const function abstraction

Explanation / Answer

- Another term for member function : D. method

- The principal that everything about an object should be in a single, self-contained unit : B. encapsulation

- The process of identifying only the relevant attributes of something and ignoring other attributes : H. abstraction

- This member function is called automatically when an object is created : G. constructor

- This type of member function promises not to change any of the object's data : G. const

- This part of an object that can be accessed by outside code, this describes how the object is supposed to behave : C. interface

- Sometimes called a 'getter', this passes data from the object to the outside world : E. accessor

- Sometimes called a 'setter', this passes data from the outside world to the object : A. mutator