Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Firearm
- {
- public void gunFire()
- {
- Console.WriteLine("Boom")
- }
- }
- class Gun1 : Firearm
- {
- public void gunFire()
- {
- Console.WriteLine("Boom")
- }
- }
- class Gun2 : Firearm
- {
- public void gunFire()
- {
- Console.WriteLine("Boom-Bang")
- }
- }
- class Gun3 : Firearm
- {
- public void gunFire()
- {
- Console.WriteLine("Boom-Bang-Pow")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement