Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Calc
- {
- private int _value;
- public void AddNumber(int num)
- {
- _value += num;
- }
- public int GetNumber()
- {
- return _value;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement