CSC 127A Lecture Notes - Lecture 28: Init

21 views2 pages

Document Summary

Drawing panel is an object: python is an object-oriented language. A class is a program entity that represents either: a program / module or, a template for a new type of objects. Abstraction: distancing between ideas and details: can use object without knowing how they work, abstraction with an ipod. You do not understand it"s internal behavior. You do not need to understand it"s internal behavior. This can be applied to many of your everyday objects, for instance: microwave, tv, phone, remote, drawingpanel. Object vs class: a class is like a blueprint, the plan or model that an object will follow. an ipod, but you have the instructions for one. For example, if you have a blueprint for an ipod, you don"t have. An object uses the class for instructions to perform it"s actions: an object is the actual ipod that will play music. Create a point class: classes start with a capital and use camel case.

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