What is the purpose of object-oriented programming?
The main purpose of object-oriented programming is to simplify the design, programming and most importantly debugging of a program. So to modify a particular data, it is easy to identify which function to use.