| created 12/13/98; revised 09/23/99, 01/21/00 |
CHAPTER 33 --- EncapsulationSo far, the objects we have designed have all their internal parts (their methods and variables) available for the rest of the program to use. Better designs enforce encapsulation by preventing other parts of the program from directly accessing many of the instance variables and methods of an object. This chapter discusses how to use the private visibility modifier to do this. Chapter Topics:
|
QUESTION 1:Should a bank control what software has access to your checking account? Click Here after you have answered the question |