PHP OOP Tutorial 1: an introduction to Object Oriented Programming

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,171
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 7, 2010

This is a basic introduction to Object Oriented programming.
Here, I introduce classes, public and private variables and methods, magic methods, and method chaining.
I use a diagram to show the concept visually before creating the code, and then I test it in the terminal.
I also show variable casting to ensure that information is properly handled, even when it is of the wrong type.

As always, I will post on my site, kloplop321.com/php-tutorials/ with the source code and any resources I use. Please make sure to subscribe if you like my tutorials, and feel free to share them with others.
http://kloplop321.com/php-tutorials/index.php/2010/11/08/php-oop-tutorial-1-a...

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (kloplop321)

  • I, too, like chocolate milk.

  • @jellocube27 You sir, deserve a reward.

  • hi, what editor are u using? it's nice.

  • @austroislander Net beans.

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • Nice tutorial and examples. I use Netbeans myself, love it and it's free. Thanks for the other tutorials as well.

  • @polydactylstrangle I think you are right. It should be ($this->z). $f is not defined in the Some class.

  • Hi, i really love your tutorial, no nonsense, i was just slightly confused as to why you put into the foo function return new Other($this->a,$this->f), shouldnt that be return new Other($this->a,$this->z),it only works for me this way anyway but you are definitely waaay more intelligent than me so im taking what you say as gospel.

  • What UML diagram tool do you use? Thanks for the great tutorials!

  • Great intro. Keep it up!

  • Who man I didn't even have my head phones in yet hold on!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more