4.9k views
6 votes
An object's state is defined by the object's

methods and instance variables
instance variables and their values
access modifiers of the instance variables
O
methods and their return values

User Donika
by
3.1k points

1 Answer

7 votes

Answer:

The right answer is option 2: instance variables and their values

Step-by-step explanation:

Let us define what an object is.

An object is a blueprint of a real-world identity. The instances are the reference to the object. Multiple instances of an object type can be made.

The instance variables and their values help us to determine the state of the object.

Hence,

The right answer is option 2: instance variables and their values

User Nanna
by
4.2k points