Inheritance in java is very simple but userful and power ful. It allows us to extend existing class and reuse the existing code. The idea of extending class is very simple. If you want to write a class and a similar class already exist with less functionality or properties. You can extend the existing class