Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Human
- {
- private int weight;
- public int Weight
- {
- get { return weight;}
- Set
- if (value <=0)
- {
- return;
- }
- else {weight = value;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement