Example: marketing
MIT6 0001F16 Object Oriented Programming - MIT …

MIT6 0001F16 Object Oriented Programming - MIT …

Back to document page

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 ...

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

Download MIT6 0001F16 Object Oriented Programming - MIT …


Information

Domain:

Source:

Link to this page:

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

Other abuse

Advertisement

Related search queries