How does object encapsulate its state and behaviour ?
How do objects interact with one another ? Give an example,
- How the data is hidden and safe if encapsulation is implemented ? Explain with an example
Simulate a daily life
in the chapter) that explains
14
Answers
Answered by
1
Answer:
sure i will tell you about this
Answered by
3
┏━━━━•❅•°•❈ - •°•❅•━━━━┓
Heya here's your answer mate
┗━━━━•❅•°•❈ - •°•❅•━━━━┛
Objects✍
→Objects are real world entities or items that can be either or non living or non living entity every object is defined through its state and behaviour that defines the object attribute and behaviour defines its function for example a pen as an object has its attributes such as brand name model colour price extra its behaviour (function) is writing.
✰Hope it helps❢❢
┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅
Similar questions