# Java Inheritance example

Can somebody give me a hand with this task? What is the approach I should take to solve the following problem? Â TASK Given the 'Vehicle' class briefly described with the average consumption (liters per 100 km), extend it with the Auto class. Â Â The Auto class manages the fuel tank Â whose maximum capacity is 120 liters per car. Â Â The Auto class must offer, in addition to the manufacturer, Â the following methods: Â Â 1) The 'travel' method allows you to make a trip with Â the kilometers provided as a parameter, provided that the Â petrol from the tank and vehicle consumption allow it. Â The kilometers traveled by each trip are stored for Â support the calculation of information on the use of the car. Â For simplicity, we assume a maximum of 100 trips. Â Â 2) The 'refueling' s method allows refueling Â if the maximum tank capacity is not exceeded. The method Â returns the number of kilometers traveled since the last Â refueling done. Â 3) Finally, the 'average' method returns the kilometers that are averaged are covered in one journey.