MIT6 0001F16 Object Oriented Programming

__str__method . for a class Python calls the __str__ method when used with printon your class object you choose what it does! Say that when we print a Coordinateobject, want to show >>> print(c) 6.0001 LECTURE 8. 15 ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download