The difference?

This is a discussion on The difference? within the C++ Programming forums, part of the General Programming Boards category; OK, I know that C++ is object orentated. But what is the difference between Object Orentated programming languages and Precedual ...

  1. #1
    Registered User Machewy's Avatar
    Join Date
    Apr 2003
    Posts
    42

    Question The difference?

    OK, I know that C++ is object orentated. But what is the difference between Object Orentated programming languages and Precedual Programming?

    thanks,
    Machewy
    Last edited by Machewy; 04-29-2003 at 02:10 PM.
    "All things come to an end"

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    classes

    (Are you really so helpless that you can't look up what objected orientated programming entails yourself? Although, I see your inability to spell properly might be a hindrance.)
    Last edited by 7stud; 04-29-2003 at 02:16 PM.

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    C++ has classes, objects, member variables and member functions.

    An object is a specific instance of a class... to steal from "C++ in 21 Days": A cat is a class. Fluffy and Boots are objects.

    With C (which is NOT object oriented) you can make a structure and have a variable like Fluffy.Age.

    With C++ You can make an object and have a member function like Fluffy.IncreaseAge() which is not possible in C.

  4. #4
    Veni Vidi Vice
    Join Date
    Aug 2001
    Posts
    343
    Besides what 7stud and DougDbug said, one feature that I like in OOP programming is encapsulation. You can have all functionality in an object(class) and not spread out everwhere in the code. Without OOP it can really be a pain in the *** if you want to debug/upgrade(add new features) to your app.
    Last edited by ripper079; 04-29-2003 at 03:36 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Review required for program of date difference
    By chottachatri in forum C Programming
    Replies: 6
    Last Post: 10-31-2008, 11:46 AM
  2. Difference Equations / Recurrence Relations
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 10-05-2007, 10:26 AM
  3. What's the difference between var++ and ++var
    By ulillillia in forum C Programming
    Replies: 6
    Last Post: 05-31-2007, 02:27 AM
  4. how to get difference of digits
    By Leeman_s in forum C++ Programming
    Replies: 5
    Last Post: 12-20-2001, 07:32 PM
  5. What is the Difference between ANSI C and non-ANSI C ?
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 11-24-2001, 05:55 AM

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