Capgemini interview question

They asked me to explain the difference between object-oriented and procedural programming with examples.

Interview Answer

Anonymous

24 July 2025

I answered by describing the main principles of object-oriented programming such as encapsulation, inheritance, and polymorphism. I also provided an example comparing a simple class-based design with a procedural approach.