Object Definition?

Discussion in 'C++' started by Immortal_Nephi@hotmail.com, Sep 28, 2008.

  1. Guest

    How can you design an object? Let's say for example. You place some
    global variables in the file scope. They are not objects unless they
    need functions. You put global functions in the file scope. Both
    global variables and global functions do not have structure. They do
    not look true object. Only file scope looks like true object.

    You don't know which functions belong to the global variables unless
    you need to group global variables and global functions together to
    become true object. The global variables look like properties. The
    global functions look like action or methods.

    The class is the answer when you want to create multiple objects. If
    you stick with ungroup global variables and global functions in the
    file scope, then it is only *ONE* (non-multiple) true object.

    Please describe if I am wrong.

    Nephi
     
    , Sep 28, 2008
    #1
    1. Advertising

  2. Rolf Magnus Guest

    wrote:

    > How can you design an object? Let's say for example. You place some
    > global variables in the file scope. They are not objects unless they
    > need functions.


    In the C++ standard, everything that occupies memory is an object. If you're
    talking about objects in the OOP sense, your question might be better off
    in comp.object .
     
    Rolf Magnus, Sep 29, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jianli Shen
    Replies:
    1
    Views:
    597
    Victor Bazarov
    Mar 13, 2005
  2. Ark
    Replies:
    1
    Views:
    424
    Chris Torek
    Aug 7, 2004
  3. Jon Slaughter
    Replies:
    4
    Views:
    453
    Jon Slaughter
    Oct 26, 2005
  4. Pierre Yves
    Replies:
    2
    Views:
    494
    Pierre Yves
    Jan 10, 2008
  5. Steve Litt
    Replies:
    2
    Views:
    190
    Dejan Dimic
    Sep 29, 2008
Loading...

Share This Page