Question: how object oriented programming works?
Answer: An object-oriented programming is a way programming which enables programmers to think like they are working with real-life entities(a thing with distinct and independent existence) or objects. ... In OOP, objects have fields to store knowledge/state/data and can do various works — methods.