Jump to content

Recommended Posts

Does OOP function somehow like CSS?

Not at all.  OOP is a method of programming that involves using Objects... hence the name Object Oriented Programming.  You'd be fooling yourself from the get-go to try and compare it to CSS; even if you could find a correlation, well... best of luck to you.

 

Just as sinista already pointed out, Java is one of the best ways to get your hands dirty with OOP; just because (well, I'm no Java expert) it only uses OOP.  The first thing you'll learn in any Java tutorial is how to build the constructor.  I don't think I can stress enough that you should definitely dip into Java to get a feel of OOP.  Simple because, you don't use procedural code like you can in PHP.  By procedural I mean, you simply typing one statement and having a result.  Your best bet is to get a Beginner's guide to Java.. familiarize yourself with a compiler (like BlueJ or Netbeans) and go from there.

 

When you actually do get to the point where you believe you understand what OOP is, then maybe you should come back and look at the differences PHP offers as an OOP language.

not that this will help you code OO PHP but the java site has some good explanations of the concepts of OO i found it quite, when i was trying to understand things

 

http://download.oracle.com/javase/tutorial/java/concepts/index.html

 

damn missing word, I was supposed to say

 

..of the concepts of OO i found it quite useful,

 

(mainly because of some of the pictures), have just been reading some of the page from the PHP link above there pretty good

not that this will help you code OO PHP but the java site has some good explanations of the concepts of OO i found it quite, when i was trying to understand things

 

http://download.oracle.com/javase/tutorial/java/concepts/index.html

 

Thanks! I know java and javascript are different but I think I used some OOP in js (jquery) without knowing.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.