problem in object

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • heartstriker@gmail.com

    #1

    problem in object

    i've a doubt that when two or more clases is used in a program then
    declaring the object as object.()
    is............. ............... ........

  • osmium

    #2
    Re: problem in object

    <heartstriker@g mail.comwrote:
    i've a doubt that when two or more clases is used in a program then
    declaring the object as object.()
    is............. ............... ........
    I don't understand your question. Note that the word "the" in English,
    means, one and only. The words "a" and "an" mean one of several. I don't
    know what the sentence "()" means. I don't know what the sentence " is
    ......" means.

    In general, each identifier visible to the compiler must be unique. And the
    name of an object *is* an identifier.

    If this doesn't answer your question, and I doubt it does, take another
    attempt at asking it. Don't be concerned about using as many as even 100
    words to describe what you want to know.


    Comment

    • Daniel T.

      #3
      Re: problem in object

      In article <1154778393.781 133.40290@i3g20 00cwc.googlegro ups.com>,
      heartstriker@gm ail.com wrote:
      i've a doubt that when two or more clases is used in a program then
      declaring the object as object.()
      is............. ............... ........
      class Object { };

      int main() {
      Object myObject; // note: no "()"
      }

      Comment

      Working...