Advertisement
Abdula_2314124

Untitled

Mar 2nd, 2024
642
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace OOP_SecondPart
  6. {
  7.     public class Gun
  8.     {
  9.         // internal
  10.         // internal protected
  11.  
  12.         // protected
  13.  
  14.         protected string Name;
  15.         protected int CountPatron;
  16.         public virtual void Shoot()
  17.         {
  18.             Console.WriteLine("Paw!!!");
  19.         }
  20.  
  21.         public void Reload()
  22.         {
  23.  
  24.         }
  25.     }
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement