Infosys interview question

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