Question: Java We have a class that represents a Flower that has a zone, name and height. The basic framework of is below: public class Flower
We have a class that represents a Flower that has a zone, name and height. The basic framework of is below: public class Flower private int zone; private String name; private int height; public void setFlowerZone (int myZone) { this.zone = my Zone; } public void setFlower Name (String myName ) { this.name myName; } public void setFlowerHeight (int myHeigh t) { this.height myHeight; } } You have a Flower object in your main method called myFlower. For that object, change the values of the instance variables in myFlower to 10 for zone, "Daisy" for the name and 14 for the height using the above setFlower... methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
