Need urgent help!
so i have an assignment due in the next 19 hours and im pretty basic with java...here is my assingment
Create any class that you want that represents any real world object. It must have the following
At least 3 instance variables (each one must be a different data type) (1pt)
getter methods (accessor) for each instance variable (1pt)
setter methods (mutator) for each instance variable (1pt)
a display() method that prints out all the values of your instance variables (1pt)
Create another java file called Demo.java , and in the main method create 2 objects of your class. Set the all the data of each object using your setter methods, and call the display() method for each object (1pt)
i have chosen to do a bag of chips, so my 3 instances would be height,length and area...im not too comfortable with getters and setters
anything helps...thank you for your time in advance
Create any class that you want that represents any real world object. It must have the following
At least 3 instance variables (each one must be a different data type) (1pt)
getter methods (accessor) for each instance variable (1pt)
setter methods (mutator) for each instance variable (1pt)
a display() method that prints out all the values of your instance variables (1pt)
Create another java file called Demo.java , and in the main method create 2 objects of your class. Set the all the data of each object using your setter methods, and call the display() method for each object (1pt)
i have chosen to do a bag of chips, so my 3 instances would be height,length and area...im not too comfortable with getters and setters
anything helps...thank you for your time in advance

, Either YOU uploaded this source or it's not off the top of your head as you claim.