Thread: What is Object Oriented Programming?

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    1

    What is Object Oriented Programming?

    Hello everyone, what is this OOP(Object Oriented Programming)? I can't understand the meaning in the C programming site.It is written that "Object Oriented programming is building a program around self contained collection of data and code to modify that data".How the data can itself be modified? and another thing, it is said that it simplifies transfer of code from one program to another by encapsulating it.Why the code has to be transfered?.Please explain me all these things and As I am beginner to this C++programming , I can't understand those topics.I tried to see in dictionary but also understood nothing.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    The Fundamental concepts section of the current Wikipedia article on object oriented programming looks like it may help you understand the concepts better. Read it and see if you can understand it.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    It states if code has to be moved, the process is simplified. It's a lot to explain, so consider reading the wikipedia article and see if you understand it.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    http://objectmentor.com is a great resource. Check the articles in the resource section.

  5. #5
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Whatever it is they aren't teaching it in college these days. The extent of OOP is the typical Encapsulation and Code Reuse Buzzwords.

  6. #6
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by indigo0086 View Post
    Whatever it is they aren't teaching it in college these days. The extent of OOP is the typical Encapsulation and Code Reuse Buzzwords.
    I see overuse of inheritance a lot, in the name of "code reuse".

  7. #7
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    I've been reading design patterns and it's like I skipped a semester where I should have been taking that class, which doesn't exist anyway.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's a good Object Oriented Strategy for OpenGL/Graphics
    By indigo0086 in forum Game Programming
    Replies: 9
    Last Post: 04-03-2007, 06:27 PM
  2. object oriented C
    By FlatLost in forum C Programming
    Replies: 4
    Last Post: 11-08-2005, 06:22 AM
  3. Question on l-values.
    By Hulag in forum C++ Programming
    Replies: 6
    Last Post: 10-13-2005, 04:33 PM
  4. A question about constructors...
    By Wolve in forum C++ Programming
    Replies: 9
    Last Post: 05-04-2005, 04:24 PM