Infosys interview question

encapsulation oops my sql self introduction