ComUnus interview question

Java OOPS concept with example