Coments of a package cannot exist
encased in single capsule. All objects have three essential features
> state through Properties or Attributes
= behaviour through Methods
> identity e.g., unique name
Identity of an object is defined through its unique name, which
object (hence encapsulated).
An object's state is defined by the properties or attributes
of the object and by the values these have. As you already
St
know that a property or an attribute is a feature of an
object, which distinguishes it from other kinds of objects.
The
Some attributes are static i.e., they remain unchanged
always e.g., the length, width and height of a car object
remain the same always ; they are static attributes. But
some attributes of an object are dynamic i.e., their values
can change depending upon the behaviour.
For example, one of the attributes of any car object is that it is capab
end
pro
eac
explain it
Answers
Answered by
3
Answer:
ye, kya hai bhai.........
Jo bhi hai bahut jyada hai
Similar questions