Machint Solutions interview question

Java oops concept explain briefly