Top down and Bottom up programming

前端 未结 10 1170
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-30 03:37

Why do we say languages such as C are top-down while OOP languages like Java or C++ are bottom-up? Does this classification have any importance in software development?

10条回答
  •  北海茫月
    2021-01-30 03:49

    In top-down approach the system is first formulated specifying but not detailing any subsystem at the beginning, and then each system and its subsystem is defined in great detail until specifying it to the base.

    e.g.- In a C program one needs to declare functions at the top of the program and then through the main entry to every subsystem/subroutine is defined in great detail.

    In bottom-up approach first designing, beginning from the base level to the abstract level is done.

    e.g.-In c++/java starts designing from class from basic level of the programming features and then goes to the main part of the program.

提交回复
热议问题