You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by an...@apache.org on 2020/10/12 18:37:52 UTC
[royale-docs] branch master updated: Update oop.md
This is an automated email from the ASF dual-hosted git repository.
andreww pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git
The following commit(s) were added to refs/heads/master by this push:
new 4c8965d Update oop.md
4c8965d is described below
commit 4c8965d4f905cca34c1874785099ea176d4ad938
Author: Andrew Wetmore <an...@cottage14.com>
AuthorDate: Mon Oct 12 15:37:45 2020 -0300
Update oop.md
---
features/oop.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/features/oop.md b/features/oop.md
index acd8971..9e87d88 100644
--- a/features/oop.md
+++ b/features/oop.md
@@ -22,6 +22,10 @@ permalink: /features/oop
# Object oriented programming (OOP)
+Object-oriented programming, according to Richard Baldwin, is "a programming style that mimics the way most people think and work." In his book _Object Oriented Programming for ActionScript 3_ he gives a real-world example of putting together a child's playset. The kit for the playset has hundreds of little parts like nuts, bolts, and brackets. You assemble them into larger units: the swings, the playhouse, the slide, the framework. Those are the "objects" that you then combine to make t [...]
+
+You can put together and test the slide without worrying about the swings. You can assemble the framework before you have anything to attach to it. If you have to make adjustments to the playhouse part, like replacing a cracked plastic shutter with a nice wooden one, that doesn't affect any other component of the playset. If you decide to move the swings from the left to the right of the framework, all the little bits that make up the swing component move with you; you don't have to deco [...]
+
## Example