Infineon Technologies interview question

Write a program with a class and its object. Call the methods inside the class with the object.