What is contracts in WCF

Its only a standard way of describing what the service does. WCF defines 4 types of contract.

Service Contracts: Describe which operations client can performs on the service.

Data contracts: Define which data types are passed to and from the service. WCF defines both builtin and explicit data type in it.

Fault contracts: Define which errors are raised by ervice and how service handles and present errors to its clients.

Message contracts:
Allow the service to interact directly with messages and message contracts can also be typed or untyped and are useful in interoperability cases.