Dynamic Variables in python

Previous
Next

Variables:

  • Application is used to store and process the information.
  • We store information using variables.
  • We discussed local, global and static variables in the previous concepts

Static variables:

  • Stores common information of all objects
  • Static variables get memory only once
  • These are sharable.
  • We can access directly using class name

Dynamic variables:

  • Stores specific information of object
  • Dynamic variables get memory every time when object has created.
  • Not sharable data
  • We access these variables using “objects address”.
Previous
Next

Add Comment

Courses Enquiry Form