ECS 32A Lecture Notes - Lecture 28: Object-Oriented Programming, Init

29 views2 pages
Verified Note

Document Summary

Sign up to be a cs tutor. Must receive a b+ or better in the course you are tutoring for. There will be a review session held for finals. Fill out the survey for any specific topics you want to cover. Classes define objects, making them easier for humans to understand. Builds a hierarchy which we can easily comprehend. When functions belong to a class, they are called methods. When variables belong to a class, they are called attributes. The class keyword defines a new class. Agent is the name of the new class. In order to avoid a syntax error, a pass statement is used. When you have a set of attributes and functions that just belong together. When data types have common characteristics, you can often group them together. Attributes are local to the object in which they are intialized. The dot notation must be used to access or modify them.

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

Related Questions