Advertisement
slowmindead

Untitled

Feb 28th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace bec
  8. {
  9.     class bec
  10.     {
  11.         private int putere;
  12.         private string culoare;
  13.         private bool stare;
  14.         public void aprinde()
  15.         {
  16.             if (stare == false)
  17.                 stare = true;
  18.         }
  19.  
  20.         public void stinge()
  21.         {
  22.             if (stare == true)
  23.                 stare = false;
  24.         }
  25.  
  26.         public void afisare()
  27.         {
  28.             Console.WriteLine("Becul are puterea " + putere + "si este " + stare);
  29.  
  30.         }
  31.  
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement