The basis of object oriented programs are the "objects" that your code works with (hence the name for this programming style). Each object can hae properties and methods. The properties basically hold values associated with the object while the methods provide the definitions of how the object can be acted on which can include changing the values of the properties (for example the turnPage method of a book would update the currentPage property to indicate which page the book is now open at).
- Extending Built In Objects
- Creating Objects from Existing Objects
- Creating New Objects Without Copying Existing Ones
- Dot Notation and "this"
- Inheritance and "constructor"
- Associative Array Notation
- Create Method if Doesn't Exist
- "self" and Multiple Objects
- Defining Objects with JSON
- Lazy Definition
- Extending Methods
- Copying Objects
- Private Properties and Privileged Methods
- Public Access to Private Methods
- Chaining Methods