is there any difference b/w object and instance?
pls tel me in detail?

Recommended Answers

All 3 Replies

When we create object from a class, it is created on stack or heap. The existence of an object in memory (stack or heap) is called instance of an object. These are interchangeably used.

When we create object from a class, it is created on stack or heap.

It is created in stack (in C++ unlike C#)until and unles you go for dynamic creation.

I didn't say that we don't create objects dynamically ;). Anyway, this is not something the OP is interested in.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.