Back to the 2022 paper

Module 3: Software Design & Metrics

20227m

Discuss the differences between object-oriented and function-oriented designs.

Worked SolutionAI Assisted

Solution

Aspect Object-Oriented Function-Oriented
Focus Objects (data+functions) Functions/procedures, data flow
Decomposition Classes/objects Modules/functions (DFD)
Data Encapsulated with methods (hidden) Shared, global
Design notation UML (class, sequence) DFD, Structure chart
Reusability High (inheritance, polymorphism) Low, function reuse
Example language Java, C++ C, Pascal
Maintenance Easier (local change) Ripple effect (high coupling)

OO is data-centric, FO is action-centric. Modern systems often use hybrid.

Similar questions

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.