Question 1
Explain the purpose of accessors and mutators - not just what do they do, but what are advantages of having these methods?
Question 2
What is the purpose of this? What is the purpose of this.? What is the purpose ofthis()?
Question 3
For two classes ClassA and ClassB. We could either
have ClassB inherit from ClassA
give ClassB an instance variable whose type is ClassA
For each of these possibilities, describe aspecific made-up situation (what is the program, what are the classes) where it would be the right choice, and explain why.