Python Class
OOPS Overview
OOPS is a mechanism to computer program using Class and Object.
Class
- Class Declaration
- Class is a collection of relative state and behavior.
- Static Variables
- A variable defined inside a class but outside the method
- Instance Variables
- A variable defined inside the class method with "self" keyword
- Methods
- Method is nothing but a function defined inside a class.
- Constructor
- A special Method, used to initialize instance variable
- Destructor
- A special Method, used to delete a class object