what is diffrence between Function Oriented Design and
Obeject Oriented design
Answer Posted / biren chetry
Object oriented design Function oriented design Modeling
Objects are modeled based on real-world objects. For example
in a banking software the objects mimic real-world
equivalents like Account, Customer etc. Functions are
modeled on distinct and independent functionality. For
example in banking system the key functions include
transferFunds, checkBalance etc.
Abstraction
Objects are normally abstracted as nouns like Person,
Address etc.
Functions are usually abstracted as verbs like
subtractBalance, getAmount etc. State The state is usually
distributed among various objects. For example each of
objects Person, PersonAddress, PersonContact have its own
state The state is normally centralized and functions share
and access the state. For example Person details are stored
centrally in file or in database and multiple functions like
getPersonDetails, UpdatePeronAddress access the centralized
state.
Hierarchy
Objects are logically grouped based on their interaction
Functions are grouped based on their functionality. Multiple
sub functions can be grouped to form a bigger function.
| Is This Answer Correct ? | 2 Yes | 7 No |
Post New Answer View All Answers
How do you choose a design pattern?
What is onion architecture?
Explain what are 5 common problems in the software development process?
Describe the builder design pattern
Which design patterns have you used in your project ?
Which design pattern is mvc?
Why is singleton used?
Is mvc is a design pattern?
What is mvp design pattern?
What are structural design patterns?
What are the examples of the behavioral design patterns?
What is viper architecture?
Did you use ooa/ood methodologies? Did you use design patterns?
What is the factory pattern in the design pattern?
What are the types of the proxy design you will get in the design pattern?