Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 10th Sep 2010, 10:42 AM   #1
Warrior Member
 
Join Date: 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
object oriented?
Share on: 
fb share twitter share gplus share more share

I don't think this is the right kind of programming
but can someone explain what object oriented programming means?

Review Blog: reviews and suggestions for online malls, web hosting services, and more!
www.victory-reviews.webs.com
Web Marketing Advice:
www.webmarketingadvice.webs.com
omgvictory is offline  
Unread 10th Sep 2010, 11:35 AM   #2
HyperActive Warrior
War Room Member
 
CarloD.'s Avatar
 
Join Date: 2009
Location: Thunder Bay ON
Posts: 403
Thanks: 14
Thanked 47 Times in 40 Posts
Default
Re: object oriented?
Share on: 
fb share twitter share gplus share more share

Object-oriented programming - Wikipedia, the free encyclopedia

CarloD. is offline  
Unread 10th Sep 2010, 12:02 PM   #3
Web Developer
 
Join Date: 2010
Location: Wisconsin
Posts: 322
Thanks: 2
Thanked 80 Times in 74 Posts
Default
Re: object oriented?
Share on: 
fb share twitter share gplus share more share

There are 2 types of programming.
Procedural Programming and Object Oriented Programming

Procedural Programming for the most part is writing code to complete tasks.
It is usually not easily extendable and to add more tasks within the program requires more work.
From Wiki "specifying the steps the program must take to reach the desired state"
Procedural programming - Wikipedia, the free encyclopedia

OOP is coding with objects that are re-usable over and over again. Each object and or the structure it is contained in is easily extendable.
Object-oriented programming - Wikipedia, the free encyclopedia

So in PP if I write the code to create a user. In that code the user has a name, email, id.
Now, say latter I want to give these users a profile. To do that I need to write the code for the profile and work it into the original code adding the profile to the user.

In OOP, you create a Class for the user with the methods to handle the users Id, name and email.
Later you want to add a profile like above you can simply write a profile Class that extends the user. All objects from the original user are available to use (depending on the visibility of the method it is in).

I'm not sure how clear that is, in my mind it makes sense
Well I included links to the wiki anyway.
You have to have a pretty strong programming understanding to really see the potential of OOP or at least dig in and play with the various things it can do.

Is there a specific language?

phpbbxpert is offline  
Unread 19th Oct 2010, 05:06 AM   #4
HyperActive Warrior
 
ursimrankhanna's Avatar
 
Join Date: 2010
Location: delhi( india )
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: object oriented?
Share on: 
fb share twitter share gplus share more share

Object-oriented programming (OOP) is a programming paradigm that uses "objects" – data structures consisting of data fields and methods together with their interactions – to design applications and computer programs. Programming techniques may include features such as data abstraction, encapsulation, modularity, polymorphism, and inheritance. Many modern programming languages now support OOP
ursimrankhanna is offline  
Unread 19th Oct 2010, 06:45 AM   #5
Automation Specialist
War Room Member
 
caesargus's Avatar
 
Join Date: 2009
Location: Cary, NC
Posts: 153
Thanks: 31
Thanked 13 Times in 13 Posts
Blog Entries: 2
Default
Re: object oriented?
Share on: 
fb share twitter share gplus share more share

As if you didn't already have enough to read on this subject

The way objects have always been taught to me is think of an alarm clock. Alarm clocks have very specific ways to interact with it. You can set the alarm clock, you can set the alarm, You can turn on the alarm, etc.

But you typically do not have access to the internal workings of the alarm clock. You can't change the lights inside the alarm clock. You can't change the color, etc.

That's basically how an object works. You have access to certain "methods" to interact with the object. The object controls everything else. The only thing you are concerned with setting the alarm and making sure it's on.
caesargus is offline  
Closed Thread


Bookmarks

Tags
object, oriented


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 08:14 PM.