In: Computer Science
When should you use and object-oriented language over a procedural language and vice versa?
Answer)
1) OOPs provides the ability to model real-world objects much more effectively than procedural. We can provide the solution of real-world problem if we are using the Object-Oriented Programming language.
2) OOP provides various features such as data hiding, data abstraction, data Inheritance which make OOP more secure and scalable. whereas these features are not available in procedural.
3) object-oriented language makes development and maintenance easier whereas in Procedure language it is not easy to manage if code grows as project size grows.
4) Reusable: Each module works independently from the surrounding module. This allows you to take one section, for instance, user login, and use it in other projects.