Meet you again on Lesson one, Hope you have got a clear picture about Introduction in your mind.
For my today and coming session you have to create two php files :
OOP is all about creating module based codes. So our object oriented PHP code file also a dedicated php file(oop.php) then we will added to our normal file called index.php
In today’s session all our Object Oriented PHP codes are embedded to oop.php
Creating A Class – classes are the templates, they are used to define an objects
You can define your own class with the keyword class followed by the name you like
Classes are the blue-prints for php objects we will see about more on class later. Classess contain variables and functions these are called properties in OOP.
Now Lets Create a variable into the above class “workers”
Now we are going to see how to add add functions to the class “workers”
I hope you’re enjoyed this session we will meet you on next session more details on each and every syntax in above code.