Thursday, October 6, 2016

[ Objected-Oriented Programming ] Object Lifecycle

The lifecycle of  an object is made up of its
Creation , Manipulation, Destruction

 life-cycle

  1. definition
  2. instantiation => __init__
  3. __new__
  4. object s ready to use
  5. destroyed =>reference count , del  -> delete instance, garbage collection

Lower level languages like C don't have this kind of automatic memory management

No comments:

Post a Comment