Question: Javq JEnte Shift II. Programming Questions (10 pts) 1. Write a class called Cup that contains the following information Private instance variables for the size
JEnte Shift II. Programming Questions (10 pts) 1. Write a class called Cup that contains the following information Private instance variables for the size of the cup (int), and the content of the cup (String) (such as "soda" or "water" or any string). A two-argument constructor to set each of the instance variables above. If the size of the cup is not positive, display on the console screen that the argument is invalid. Getter and Setter methods for each instance variable with the same error detection as the constructor
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
