Question: what are the advantages of object oriented programming?
Answer: Modularity for easier troubleshooting. Something has gone wrong, and you have no idea where to look. ...  Reuse of code through inheritance. ...  Flexibility through polymorphism. ...  Effective problem solving.