![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
|
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. |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 5
![]() |
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 |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jun 2005
Posts: 16
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#4 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 5
![]() |
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 |
|
|
|
|
|
#5 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#6 |
|
Programming Guru
![]() ![]() ![]() |
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." |
|
|
|
|
|
#7 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#8 |
|
Programming Guru
![]() ![]() ![]() |
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." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|