NODUCO Interview Question

OOps in java? Real time example?