kokobillsoft / BuildingMaket

0 stars 0 forks source link

OOP Task "Handgun": #9

Closed AlexisK closed 6 years ago

AlexisK commented 6 years ago

Implement class Handgun - a handgun is being created with a full clip of maxAmmo ammunition. It can .shot() and .reload(n). In order to shot it should has ammo. Shooting reduces ammo in the clip. Reloading fills ammo by n. You can't reload more ammo then a handgun's clip may have. Use imagination.