What is a Contract in Solidity.

Contract is a similar to classes in java. It is collection of contract functions and it’s data(state) that is stored in ethereum blockchain network.

Syntax of an contract code:

pragma solidity >=0.4.0 <0.6.0;
contract Name{
    //variable declaration

Solidity Compilation Process

                                --- ABI

Solidity code > Solidity Compiler –| | —- MachineByte Code – Ethereum Block chain