Cognizant Interview Question

OOPs Concept and code for encapsulation and SQL queries