In the above program, we used an object-oriented approach to create the program. And, we created an objectSample. Here, we definedmain()function. Themain()function is the entry point for the program. In themain()function, we created a string variablestrinitialized with "MAN WAN LAN PAN ...