Mphasis interview question

Define Interface and where is it used in automation coding?