Question: Implement a boolean method called addRecord to the RecordCollection that does the following: ( a ) The method should take a Record as a parameter.
Implement a boolean method called addRecord to the RecordCollection that does
the following:
a The method should take a Record as a parameter.
b If the record is null or the array is full return false.
c Otherwise, add the record to the next open spot, increment the number of
records, and return true.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
