Properties Methods Events
6
Properties, Methods and Events Seth Sivak Programming for Digital Media Spring 2010
-
Upload
seth-sivak -
Category
Business
-
view
704 -
download
0
Transcript of Properties Methods Events
![Page 1: Properties Methods Events](https://reader031.fdocuments.us/reader031/viewer/2022030403/555a04cfd8b42aa8098b5138/html5/thumbnails/1.jpg)
Properties, Methods and EventsSeth Sivak
Programming for Digital Media Spring 2010
![Page 2: Properties Methods Events](https://reader031.fdocuments.us/reader031/viewer/2022030403/555a04cfd8b42aa8098b5138/html5/thumbnails/2.jpg)
Inheritance
Child will inherit characteristics of the parent
Class Inheritance
Display Inheritance
![Page 3: Properties Methods Events](https://reader031.fdocuments.us/reader031/viewer/2022030403/555a04cfd8b42aa8098b5138/html5/thumbnails/3.jpg)
Inheritance vs. Instance
![Page 4: Properties Methods Events](https://reader031.fdocuments.us/reader031/viewer/2022030403/555a04cfd8b42aa8098b5138/html5/thumbnails/4.jpg)
Properties
Ways to describe custom objects
Variables for Objects
Read-Write vs. Read-Only
![Page 5: Properties Methods Events](https://reader031.fdocuments.us/reader031/viewer/2022030403/555a04cfd8b42aa8098b5138/html5/thumbnails/5.jpg)
Methods
Way to tell custom objects what to do
Functions called on Objects
Can return a value
Can take in parameters
![Page 6: Properties Methods Events](https://reader031.fdocuments.us/reader031/viewer/2022030403/555a04cfd8b42aa8098b5138/html5/thumbnails/6.jpg)
Events
Event Dispatchers
Events (MouseEvent, TimerEvent...)
Event Listeners