Cognizant interview question

explain about two oops concepts with real time example