1. Inheritance 2. Inherhance- A class can be a sub—type of another class- The inheriting class contains all the methods and fields of the class it inherited from plus any…