XYZ (Turkey) interview question

Explain me java oops concept