object orientated program

This is a discussion on object orientated program within the C++ Programming forums, part of the General Programming Boards category; sorry for this obviously newbie question, but can some one explain to me in simple english the meaning of an ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    142

    object orientated program

    sorry for this obviously newbie question, but can some one explain to me in simple english the meaning of an object orientated programe is?
    WhAtHA hell Is GoInG ON

  2. #2
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    cprogramming.com has tutorials on this I'm sure, and if it doesn't (dear god) then google for it. There's plenty of information online about this.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  3. #3
    Rabble Rouser Slacker's Avatar
    Join Date
    Dec 2005
    Posts
    116
    A program that focuses on objects rather than procedures. It's to the effect of looking for the 'what' instead of the 'how'. Once you figure out the 'what', the 'how' falls into place because objects--in theory--know what to do.

  4. #4
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    but can some one explain to me in simple english the meaning of an object orientated programe is?
    You create objects which contain data, and then you call predefined functions with those objects.

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    cprogramming.com has tutorials on this I'm sure
    http://www.cprogramming.com/tutorial/lesson12.html

    It refers you to the forums.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  6. #6
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Quote Originally Posted by dwks
    Sorry, I didn't realise
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  7. #7
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    Well here is why you write object orientedly.

    1. Encapsulation - Make it so you can reuse your functions, reuse your classes, with different implementations, with little changes

    2. Ease of maintenance - Object oriented code is generally easier to debug, easier to add on to and change

    3. Simply more logical.


    Now for the metaphor

    Essentially, the procedural programmer is someone who builds a house.

    The OO programmer is someone who creates the building blocks of a house. Classes and functions are your building blocks.

    Logically you use materials and building blocks to make houses, you don't just build a house as a whole..

    The OO programmer works on a lower level, creating the materials, and then finally putting them together to create something beautiful.
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  8. #8
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  9. #9
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    I really don't understand how people can take the time to go grab a link instead of writing a simple explaination :\
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  10. #10
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,687
    > I really don't understand how people can take the time to go grab a link instead of writing a simple explaination :\
    1. the simple explanation usually doesn't exist for such an open ended question.
    2. It's a lot more than STFW type questions deserve.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 02:30 PM
  2. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 12:38 PM
  3. synchronization object choosing
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 03-22-2008, 04:33 AM
  4. Linked List Templates and Object Types
    By ventolin in forum C++ Programming
    Replies: 10
    Last Post: 06-16-2004, 12:05 PM
  5. operator overloading and dynamic memory program
    By jlmac2001 in forum C++ Programming
    Replies: 3
    Last Post: 04-06-2003, 11:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21