COMPSCI 61A Lecture Notes - Lecture 15: The Blank Slate, Init
zogo39484755 and 6 others unlocked
22
COMPSCI 61A Full Course Notes
Verified Note
22 documents
Document Summary
Homework party wednesday 10/5 6:30pm-8:30pm in 247 cory hall. Walkthrough videos for homework 05 and lots of lab and discussion are posted. One-one-one tutoring signup sheets are going to be released every friday at. Each object also knows how to manage its own local state, based on method calls. Several objects may all be instances of a common type. Specialized syntax & vocabulary to support this metaphor. A class serves as a template for its instances. Idea: all bank accounts have a balance and an account holder; the account class should add these attributes to each newly created instance. Idea: all bank accounts should have withdraw and deposit behaviors that al work in the same way. Better idea: all bank accounts share a withdraw and deposit method. Allow you to create any type of data you want. A class statement creates a new class and binds that class to in the rst frame of the current environment.