When a class is extended from another class it inherits all data and methods of the class it extends. To prevent a class from being sub-classed the modifier would be final instead of public. The Applet class is itself a subclass of the Panel class. The Panel class is a subclass of another class, and so forth. Member variables Member variables are defined within the class but not within a method of the class.
Member variables are available for use by all methods of the class.
Each object is an instance of a class previously defined with its own data and methods. Here you can find reference documentation that specifies the List object or all Java objects . A method is a program structure consisting of variables and statements that can receive parameters and may return one value. A method may have local variables and it may use member variables. Method parameters are defined with their data type, in the method argument list.