PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: dental hygienist

MIT6 0001F16 Object Oriented Programming

Back to document page

Object Oriented Programming (download slides and .pyfiles follow along!)6 . 0 0 0 1 L E C T U R E LECTURE 81OBJECTS python supports many different kinds of "Hello"[1, 5, 7, 11, 13]{"CA": "California", "MA": "Massachusetts"} each is an Object , and every Object has: a type an internal data representation(primitive or composite) a set of procedures for interactionwith the Object an Object is an instanceof a type 1234 is an instance of an int "hello"is an instance of a LECTURE 82OBJECT Oriented Programming (OOP) EVERYTHING IN python IS AN Object (and has a type) can create new objects of some type can manipulate objects can destroy objects explicitly using delor just forget about them python system will reclaim destroyed or inaccessible objects called garbage collection LECTURE 83WHAT ARE OBJECTS? objects are a data abstractionthat (1) an internal representation through data attributes(2) an interfacefor interacting with Object through methods (aka procedures/functions) defines behaviors but hides LECTURE 84 how are lists represented internally?

PROGRAMMING (OOP) EVERYTHING IN PYTHON IS AN OBJECT (and has a type) can create new objects of some type can manipulate objects can destroy objects •explicitly using delor just “forget” about them •python system will reclaim destroyed or inaccessible objects –called “garbage collection” 6.0001 LECTURE 8 3

  Programming, Python, Object, Oriented, Object oriented programming

Download MIT6 0001F16 Object Oriented Programming


Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Related search queries