2. Variables/Attribute
In a class all the variables are term as Attribute
There are 3 types of variables are allowed.
Instance
/Regular Variables - - Object Level VariablesClass
/Static Variables - -Class
Level VariablesLocal
variables - - Method Level Variables
- Attributes are looked first in the instance and then in the class