Properties Methods Events

6
Properties, Methods and Events Seth Sivak Programming for Digital Media Spring 2010

Transcript of Properties Methods Events

Page 1: Properties Methods Events

Properties, Methods and EventsSeth Sivak

Programming for Digital Media Spring 2010

Page 2: Properties Methods Events

Inheritance

Child will inherit characteristics of the parent

Class Inheritance

Display Inheritance

Page 3: Properties Methods Events

Inheritance vs. Instance

Page 4: Properties Methods Events

Properties

Ways to describe custom objects

Variables for Objects

Read-Write vs. Read-Only

Page 5: Properties Methods Events

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

Events

Event Dispatchers

Events (MouseEvent, TimerEvent...)

Event Listeners