Valtech interview question

Explain oops features with real world example and a small program