Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 12th, 2005, 10:45 PM   #1
sparda
Newbie
 
Join Date: Apr 2005
Location: US
Posts: 15
Rep Power: 0 sparda is on a distinguished road
Send a message via Yahoo to sparda
Clarification, please.

Hello everyone,

I have a situation. I've been looking through Programming Forums for an answer to my question, an i havent found it yet. So i've dicided to ask for the answer here in the C forum.

I want to know the EXACT meaning of Object Oriented Programming, because this has peeked my curiousity for a long time now. I've looked through, google, yahoo, altavista, ect, and what i get is a definition that is not understandable at all to me!

So in other words, can anyone explain what Object Oriented Programming is in simple ENGLISH? or at least try to. I know a some C programming, so i think i might be able to understand some of the terminology. Any help would be greatly appreciated. Thank you.
sparda is offline   Reply With Quote
Old Jul 12th, 2005, 10:49 PM   #2
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
http://www.accu.org/acornsig/public/articles/oop_c.html

Haven't read it myself, but a quick Google search turned that up.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Jul 13th, 2005, 3:20 AM   #3
proghelper
Newbie
 
Join Date: Jun 2005
Posts: 16
Rep Power: 0 proghelper is on a distinguished road
C is not an Object Oriented (OO for short) programming language. It is a functional language. What this means is that you write the programs as set of functions.

In OO, you write a program as a collection of communicating objects. OK then what is an object? Object is a thing with its own data and fucntionality to process the data.

The differenace is that in fuctional programming, data belongs to all functions and data flows through fuctions. But in OO, data will blong to where they belong, that is objects, and the object classes will know what to do with data.

It is kind of tough to explain this without diagrams, but I hope I tried.

--------
http://www.programminghelp4u.com - Programming (Assignment/Project) Help
proghelper is offline   Reply With Quote
Old Jul 13th, 2005, 3:32 AM   #4
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
I know C is not an OO language, but it's perfectly possible to do OO programming in C. It's just a bit more difficult.

By the way C is not a functional language, I have no idea where you got that idea.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Jul 13th, 2005, 8:54 AM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Object oriented design is the kind of design most easily accomodated by the human brain. It is converted to a more procedural approach for today's common processors because they are incapable of dealing directly with the process. OOD is not an invention of software gurus. It has been around for ages. Look at the design of physical objects all around you. Think of your software designs in the same terms. You will need layers of abstraction between your design and the machine implementation. One can afford it, these days.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 13th, 2005, 9:01 AM   #6
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Object Orientation provides a level of abstraction for the programmer. Kind of like, you only care if the car cranks, not what is under the hood.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Jul 13th, 2005, 9:25 AM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
But...but...the carburetor analogy in my sig is under the hood! :eek:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 13th, 2005, 10:24 AM   #8
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
lol... everyone can relate to the famous car analogy
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:23 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC