Bird
0
0

Which statement about instance fields is true?

easy🧠 Conceptual Q2 of 15
C Sharp (C#) - Classes and Objects
Which statement about instance fields is true?
AEach object has its own copy of instance fields
BInstance fields are shared by all objects of the class
CInstance fields cannot be private
DInstance fields must be declared inside methods
Step-by-Step Solution
Solution:
  1. Step 1: Recall instance field behavior

    Instance fields belong to each object, so each object has its own copy.
  2. Step 2: Check other options

    Shared fields are static, instance fields can be private, and they are declared in the class, not inside methods.
  3. Final Answer:

    Each object has its own copy of instance fields -> Option A
  4. Quick Check:

    Instance fields = per-object copy [OK]
Quick Trick: Instance fields belong to objects, not the class itself [OK]
Common Mistakes:
MISTAKES
  • Mixing instance fields with static fields
  • Believing instance fields must be public
  • Declaring instance fields inside methods

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Sharp (C#) Quizzes