Superclasses, subclasses and constructors

I am looking for help to set up this program. Can someone help?

Create a precipitation of the super-class that takes into account the temperature parameter. The toString () method should return the temperature. There should be a subclass rain that also has a parameter value and getAmount () and toString ()returns the temperature and quantity as methods and a subclass that also has snowDepth as a parameter and getDepth () and toString () * return the temperature and depth * as methods.

Thank you! I look forward to your answer.