Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Ball
- {
- private String name = "";
- private String color = "";
- private String hardness = "";
- private int size = 0;
- public Ball(String _name, String _color, String _hardness, int _size)
- {
- this.name = _name;
- this.color = _color;
- this.hardness = _hardness;
- this.size = _size;
- }
- public String GetName() { return this.name; }
- public void SetName(String value) { this.name = value; }
- }
Add Comment
Please, Sign In to add comment