Procedural Programming – JavaScript, PHP, ColdFusion, ActionScipt 1 and 2. Tend to be simpler and require less code than Object-Oriented counterparts, but runs into it’s own challenges.
Object-Oriented Programming – C#, Java, ActionScript 3. Individual components allow greater flexibility. In a well-written object-oriented program, all components function independently.
Object-Oriented Terminology
Package – Filing cabinet or a folder, where files live.
Class – The most important. In order to have and use an object, you must define it. A class defines your objects. You can think of a class as a blueprint. You can’t actually use a class, it’s just the definition of the object. The class is stored in the package.
Object – Defined in the class. What you use in your program. In many cases the term object and instance are interchangeable. This is the house or where you do things.
Property – The nouns of the object. The items in the house. Defining the parameters of the object. Variable = property.
Methods - The verbs of the object. To-do list, things you do in the object. Function = method.
Dot Notation – If you have a class inside of a package, this is how you reference it. If you’re calling a property of an object, you reference using dot notation. Examples: flash.display.MovieClip, txtFirstName.text, etc.