Question: Cloud.java This class needs: 1) Private float instance variables: bottom and top. 2) A ctor that takes bottom and top as args and stores them

 Cloud.java This class needs: 1) Private float instance variables: bottom and

Cloud.java This class needs: 1) Private float instance variables: bottom and top. 2) A ctor that takes bottom and top as args and stores them in the instance variables. NOTE: "ctor" is an abbreviation for "constructor" 3) A public method getHeight0 that returns a float, whose value is top minus bottom 4) A public String method rain0 that returns "It is raining" StratusCloud.java and CumulusCloud.java For these classes: 1) Change the class declarations so that they are subclasses of Cloud. 2) Fix the ctors so that they pass bottom and top to the superclass ctor. irrusCloud.java Subclasses of Cloud inherit a rain0 method that is not appropriate for cirrus clouds. Override rainO so that it returns "I cannot make rain

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!