Multiple choice technology programming languages

What is the difference between an object and an instance?

  1. No difference, both are the same

  2. An Object maynot have a class definition, but an instance must have a class definition

  3. An Object must have a class definition, but an instance may not have a class definition

  4. Object and Instance should have different class definitions. It can not be the same.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In OOP terminology, 'object' is a broader concept - anything with identity, state, and behavior (including anonymous or prototype-based objects). 'Instance' specifically means an object created from a class definition using instantiation. An object may not have a formal class (as in prototype-based languages), but an instance must originate from a class.