Infosys Interview Question

What are the oops concept? write a program to print the words?