Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Drink {
- private String name;
- private int volume;
- public Drink(final String name, final int volume) {
- this.name = name;
- this.volume = volume;
- }
- public String getName() {
- return this.name;
- }
- public int getVolume() {
- return this.volume;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement