Chapter 11 Pre Assignment
Answer the following for your language (if it exists):
1. What is the encapsulation construct for abstract data types?
2. What is the encapsulation construct for collections of logically related code and data? (See 11.6)
a. Present an example of the encapsulation structure.
b. What is the naming encapsulation? (See 11.7) Give an example.
3. Does your language support parameterized ADTs? If so, give an example.
4. Does your language allow nested subprograms?
Note: Include your name and language at the top of the page. Include your source with each answer.