Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace bec
- {
- class bec
- {
- private int putere;
- private string culoare;
- private bool stare;
- public void aprinde()
- {
- if (stare == false)
- stare = true;
- }
- public void stinge()
- {
- if (stare == true)
- stare = false;
- }
- public void afisare()
- {
- Console.WriteLine("Becul are puterea " + putere + "si este " + stare);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement