COMPSCI 61A Lecture Notes - Lecture 12: Rational Number, Mutation, Firstclass

21 views7 pages
zogo39484755 and 6 others unlocked
COMPSCI 61A Full Course Notes
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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents