Difference between top down and bottom up approach in programming
Answers
Object oriented programming languages like C++ and JAVA programming language follows bottom-up approach. A top-down approach begins with high level design and ends with low level design or development. A bottom-up approach begins with low level design or development and ends with high level design
Answer:
TOP DOWN APPROACH:
★ In this approach We focus on breaking up the problem into smaller parts.
★Mainly used by structured programming language such as COBOL, Fortran, C, etc.
★Each part is programmed separately therefore contain redundancy.
★In this the communications is less among modules.
★It is used in debugging, module documentation, etc.
★In top down approach, decomposition takes place.
★In this top function of system might be hard to identify.
★In this implementation details may differ.
BOTTOM UP APPROACH:
★In bottom up approach, we solve smaller problems and integrate it as whole and complete the solution.
★Mainly used by object oriented programming language such as C++, C#, Python.
★Redundancy is minimized by using data encapsulation and data hiding.
★In this module must have communication.
★It is basically used in testing.
★In bottom up approach composition takes place.
★In this sometimes we can not build a program from the piece we have started.
★This is not natural for people to assemble.
hope it helps ✔︎✔︎✔️★.