PDF4PRO ⚡AMP

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

Example: biology

MIT6 0001F16 Object Oriented Programming - MIT …

Object Oriented Programming (download slides and .pyfiles follow along!)6 . 0 0 0 1 L E C T U R E LECTURE 81 OBJECTS 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 82 Object 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 83 WHAT ARE OBJECTS?

EXAMPLE: FRACTIONS create a . new type . to represent a number as a fraction internal representation . is two integers •numerator •denominator interface . a.k.a. methods . a.k.a. how to interact . with Fractionobjects •add, subtract •print representation, convert to a float •invert the fraction the code for this is in the handout ...

Loading..

Tags:

  Programming, Fractions, Object, Oriented, Object oriented programming, Integre

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

Transcription of MIT6 0001F16 Object Oriented Programming - MIT …

Related search queries