Computer Science, asked by tomargauri, 7 months ago

objects encapsulate state and behaviour . comment

but when it happens ​

Answers

Answered by Anonymous
5

Answer:

Every object has its own object scope that might hold a bunch of instance variables. ... We can say that an object encapsulates state (data, knowledge), which is private to the object, and exposes behaviour by the way of having publicly accessible methods. Objects have state (instance variables) and behaviour (methods).

Explanation:

hope it will help u

Answered by Brenquoler
0

An object is an identifiable entity with some characteristics or attributes and behaviour. The state of an object depends upon the values of its attributes at any given point of time.

Similar questions