allocate method

int allocate()

Implementation

int allocate() => _nextObject++;