Computer Science, asked by mahe4756, 1 year ago

What is the law of demeter in object-oriented programming?

Answers

Answered by prathamesh1855
2
⛤Hey There⛤
_____________________________________________


What is the law of demeter in object-oriented programming?
The Law of Demeter indicates that you should only speak to objects that you know about directly. That is, do not perform method chaining to talk to other objects. When you do so, you are establishing improper linkages with the intermediary objects, inappropriately coupling your code to other code
_____________________________________________

Short Explanation
_____________________________________________

Hope It Helps.☺️

Similar questions