Jump to content

Hi all, new here, from Fife Scotland


GrahamMcGregor

Recommended Posts

Just wanted to say a quick hi to you all.

 

I have a fairly good grasp of procedural scripting with php but have been struggling with the object oriented side of things for longer than i care to remember. Time to get to grips with it and found a good tutorial here so thought i would join.

 

Cheers all

Graham

Link to comment
https://forums.phpfreaks.com/topic/285366-hi-all-new-here-from-fife-scotland/
Share on other sites

Greetings, and good luck with OOP. 

 

One way to think about an object is as a struct/record, with an element that stores an array of pointers to functions.  That is the basic implementation for most languages AFAIK.

 

PHP has single inheritance, interfaces, support for scoping (public, private, protected) and some new tricks like traits.  If you can get the knack of static methods (imagine one magic object that the os creates for you) vs dynamic instantiation (ie.  Myclass::foo() vs.  $obj = new Myclass() ) you'll be well on your way. 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.