A good answer might be:Yes. The idea of encapsulation is to hide the details of an object from other sections of the software. Some of the details might be methods. | |
Private Methods
A private method is one that can be used only by the other methods of an object. Parts of a program outside of the object cannot directly invoke (use) a private method of the object.
Say that the bank wants to keep track of how many
times each checking account is used.
(This might be done as a security measure.)
A "use" of the checking account is processing a deposit
or a check.
To do this, a "use count" is added to the data of the
The | |
QUESTION 8:Fill in the blank so that the new private method increments the use count. Click Here after you have answered the question |