Question: Sample: In ARRAY SITE IN PRIVATE because someone wsing this class . does not need to know the tire of cy array, It's in internal

Sample: In ARRAY SITE IN PRIVATE because someone
Sample: In ARRAY SITE IN PRIVATE because someone wsing this class . does not need to know the tire of cy array, It's in internal . detail and I cannot afford someone increasing the size of by . array beyond 10 because By system has Limited mary/resources private const int ARRAY SITE = 10; /. TWVALID_INDEX in PRIVATE because I do not want the user of this . software to modify this value. What if they set it to seething Like 100 which is an acceptable value, as per the design of my class private conut int INVALID ELDER = -9790; / myArray is PRIVATE because I do not want the icumtuner of this class . It Array to 'mill' private int CyArray, // constructor public MyArray () myArray a new int[ARRAY_SIZE]; We GotElementAt has to be PUBLIC because how else will the consumer of this class read the elements is myArray? of public Lat GetElementAt (int index) If (index In ( 65 index

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!