Question: what are the advantages of object oriented programming over procedural?
Answer: The objects are processed by their member data and functions. It is easy to analyze the user requirements. With the help of inheritance, we can reuse the existing class to derive a new class such that the redundant code is eliminated and the use of existing class is extended. This saves time and cost of program.