# Contract A contract is a set of rules that objects or components interacting with each other must adhere to, defining mutual expectations, responsibilities, and guarantees. Some type of contracts could be used, as [[Protocol|protocol]], [[Structural Typing|structural typing]], or [[Type Annotation|type annotations]]. --- Bibliography: - [Title - website.com](need bibliography)