Most GUI classes use the principle of INHERITANCE by extending the JFrame class.
The principle of inheritance is used by extending the JFrame class for making new GUI classes. Inheritance can be of two types: Single inheritance and Multiple Inheritance.