Python Object Oriented Programming(OOPS)

  • In python, Everything is Object To create objects we require some plan or model or Plan or BluePrint which is nothing but class
  • We can write a class to represent the Properties(Attributes) and actions (behavior) of an object.
  • Properties can be represented by variables
  • Actions can be represented by methods
Basic example for class
  • Instance Variables(Object Level Variables)
  • Static Variables(Class Level Variables)
  • Local Variables(Method Level Variables)
  1. Instance Methods
  2. Class Methods
  3. Static Methods

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store