This paper concentrates on the primary theme of In the code distributed on March 22, in classIntersection, two new “getter” in which you have to explain and evaluate its intricate aspects in detail. In addition to this, this paper has been reviewed and purchased by most of the students hence; it has been rated 4.8 points on the scale of 5 points. Besides, the price of this paper starts from £ 79. For more details and full access to the paper, please refer to the site.
In the code distributed on March 22, in classIntersection, two new “getter” methods have been added,outgoingSize()andoutgoingGet(). There is also a public ‘setter’ method,addOutgoing(). These three methods operate on the final private listoutgoing.a) This means that we have public ‘setter’ and ‘getter’ methods to operate on outgoing. That suggests that outgoing might as well be public. Give examples of operations on outgoing that are forbidden to the public as a result of forcing the public to use these methods. (0.5 points)b) But the list outgoing is already declared as final. This would seem to imply that outgoing is read-only. Give an example of an operation on outgoing that is forbidden by declaring it to be final, and give some examples of operations that change outgoing that are still permitted despite its being final. (0.5 points)