problem in object

H

heartstriker

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

osmium

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.
 
D

Daniel T.

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 "()"
}
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top