Sunday, December 2, 2012

Basics of object-oriented programming

Introduction to object-oriented programming

Object-oriented programming (OOP) is a way of organizing the code in a program bygrouping it into objects—individual elements that include information (data values) andfunctionality. Using an object-oriented approach to organizing a program allows you to groupparticular pieces of information (for example, music information like album title, track title,or artist name) together with common functionality or actions associated with thatinformation (such as “add track to playlist” or “play all songs by this artist”). These items arecombined into a single item, an object (for example, an “Album” or “MusicTrack”). Being ableto bundle these values and functions together provides several benefits, including onlyneeding to keep track of a single variable rather than multiple ones, organizing relatedfunctionality together, and being able to structure programs in ways that more closely matchthe real world.
Programming Actionscript 3. Powered by Blogger.