Objects have characteristics, which in PHP are called properties on the class blueprint. Let’s think about what a user would have, such as first name, last name, user id, etc. Then you’ll add these to your blueprint. Next, you’ll create two different users and set each one’s properties.
As you are doing this episode, think about how each user is separate. Each one is an instance of the blueprint. But they are separate users, i.e. separate objects. Each has a name. Each has an ID. They are separate.
You’ll be introduced to visibility keyword
public and the object arrow accessor
There’s a time to code and …. yup, that sums it up.
Total Lab Runtime: 03:04:55
- 1 Lab Introductionfree 08:27
- 2 What is Object-Oriented Programming (OOP)?free 14:14
- 3 What is an object?free 13:30
- 4 Meet the Class Blueprintpro 04:53
- 5 Creating an Objectpro 07:57
- 6 Defining Characteristicspro 10:54
- 7 Putting the Object to Workpro 13:56
- 8 Hiding Away the Complexitypro 22:40
- 9 Working within the Object with $thispro 15:41
- 10 Internal Control of Object Creationpro 15:07
- 11 Class Constantspro 08:58
- 12 Class Staticpro 17:49
- 13 What OOP is Notpro 19:11
- 14 Practical Examplespro 04:52
- 15 Wrap it Uppro 06:46