Coding in header vs separate cpp

You must create a constructor that gets an instance of SoftSerial passed as an argument.

For example have a look at the cozir lib - Arduino Forum -
zip file is attached at bottom of the first post