In essence a bayonet is a sharp object affixed to the end of another weapon, most commonly a gun. It can be used on its own in very close quarters, if in a dire situation.
When a bayonet is added to a gun (requiring [skill]), its attack ability is added to the weapon, and any of its other properties are applied to the whole weapon.