Law of demeter

Law of demeter Rules:(Method of an object is allowed to interact with )
1. Others method on its object
2. Method on propertise of the object
3. Method on arguments passed into the method
4. Method on instance of new objects created inside of the method

Leave a Reply

Your email address will not be published. Required fields are marked *