HCLTech interview question

OOP program syntax structure and a program.