Pergunta de entrevista da empresa J.P. Morgan

Describe OOP (Object-oriented programming) and give an example. (Technical interview question)

Resposta da entrevista

Sigiloso

19 de mai. de 2019

I described the concept of an object from a class and the idea of abstraction using a bank account as an example. I used a bank account as an object with variables such as money and bank id and methods such as deposit and withdrawal. I was also asked about certain OOP definitions such as polymorphism and encapsulation.