COMPSCI 61A Lecture Notes - Lecture 12: Rational Number, Mutation, Firstclass
zogo39484755 and 6 others unlocked
22
COMPSCI 61A Full Course Notes
Verified Note
22 documents
Document Summary
Object is a value that behaves like what it"s supposed to represent. 81 days, 0:00:00 returns reasonable representation of what the value represents. Objects behave like the things they represent. Objects can represent things, but also properties, itneractions, processes. A type of object is called a class; classes are first-class values in python. Special syntax that can improve the composition of programs. In python, every value is an object. A lot of data manipulations happens through object methods. Functions do one thing; objects do many related things. These aren"t general functions, which is why they are methods, specific to the object. Enumeration of character properties such as case, Based on font computer, will display symbols in different ways. First example in the course of an object changing state. The same object can change in value throughout the course of computation. All names that refer to the same object are affected by a mutation.