Question: Create a generic class, madLabClass The class will have 2 fields o One is an integer for an index o The second is an array
Create a generic class, madLabClass
The class will have 2 fields
o One is an integer for an index
o The second is an array of the generic class type
A constructor for the class will take in one parameter of int
o This will create the array backing field to be of the size sent in
o The index will be set to 0
A function called GetValue
o will print out the current value of the array being pointed at by the index
o will advance the index by one
o if the index is out of range, loop it back to the beginning
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
