Which of the following is associated with objects?

2017

Which of the following is associated with objects?

  1. A.

    State

  2. B.

    Behaviour

  3. C.

    Identity

  4. D.

    All of the above

Attempted by 324 students.

Show answer & explanation

Correct answer: D

In Object-Oriented Programming (OOP), an object is a fundamental unit that combines data and functionality. It possesses three core characteristics: State, Behaviour, and Identity. State refers to the data or attributes stored within an object at any given time. Behaviour represents the actions or methods that the object can perform, often manipulating its own state. Identity is a unique property that distinguishes one object instance from another, even if they share the same state and behaviour. Since options A (State), B (Behaviour), and C (Identity) all accurately describe these essential properties inherent to objects, the correct choice must encompass all of them. Therefore, Option D is verified as accurate based on standard programming theory.

Explore the full course: Isro