genSerial method

int genSerial()

Creates a new serial number

Implementation

int genSerial() => _objser++;