Mastercard interview question

Explain object oriented programming in java