Q. Differentiate between object oriented and function oriented design.
Ans:• Function-oriented design depend on identifying functions which transform their inputs to create outputs. In most systems the functions share some global system state.
- The functional design process engages identifying data transformations in the system decomposing functions into a hierarchy of sub-functions, describing the operation and interface of each system entity and documenting the flow of control in the system.
- Data-flow diagrams are resources of documenting end-to-end data flow through a system. They don't include control information. Structure charts are a means of representing the hierarchical organization of a system. Control perhaps documented using a program description language (PDL).
- Data-flow diagrams is able to be implemented directly as a set of cooperating sequential processes. Every transform in the data-flow diagram is implemented as a separate process. Otherwise they can be realized as a number of procedures in a sequential program.
- Functional design as well as object-oriented design usually results in totally different system decompositions. Though the most appropriate design strategy is often a heterogeneous one where both functional and object-oriented approaches are used.