There is no difference between an object and an instance.

Options
- False
- True


CORRECT ANSWER : False

Discussion Board
Are they different: object and an instance.

Answer: They are same.

It''s a humble request, do not post unrelated things like the definition of class. Be focused on the question.

Jai Patel 09-6-2020 02:14 AM

subtle difference

They are different. Instance refers to concrete code of certain class in the memory, while the object refers to combination of code and states/data in memory.

For example, considering a C++ class template with no data member and no virtual member function. The instance was created in TEXT segment after template instantiation and class instantiation at compile time. However there is no object of this class created. The literal name of the class variable refers to the class instance instead of class object. When you assign the name to another variable, there is nothing to be changed in the memory but creating a Alias of the instance.

Yang 12-2-2017 02:54 AM

object vs instance

object is a copy of the class and instance is a variable that hold the memory address of an object

Leena 11-12-2017 02:13 AM

Ojbects and instances

both are same you given answer is incorrect

Tahir Nawaz 10-2-2017 02:38 PM

Object vs. instances

An object is a software bundle of related state and behavior. An instance is a single and unique unit of a class. A class is a blueprint or prototype from which objects are created.

career 06-13-2014 02:50 AM

Objects and instances

Do a search on the web. Most developers, including myself, use the words interchangeably. An instance of a class is an object. The only difference I can identify is that object has 6 letters, and instance has 8. Stop trying to confuse people and get on with more important questions!!

gds 06-12-2014 07:44 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement