编程知识 cdmana.com

Difference between process oriented and object-oriented

(1) From the design point of view .

Process oriented : The focus of program design is to analyze the steps to solve the problem , And the process of completing the steps , It is a structured top-down programming method . object-oriented : The focus of programming is to decompose the things that make up the problem into objects , Starting from the local , Build the whole program step by step through iteration , It is a kind of data centered , Bottom up programming method based on class design .

(2) In terms of scope of application .

Process oriented : Since it does not involve operations such as instantiating objects , Higher program performance , Less overhead , Therefore, most systems with high resource requirements, such as cut in, adopt process oriented development . object-oriented : Because of its abstraction 、 encapsulation 、 Inherit 、 Polymorphism , Make the system have better expansibility 、 Maintenance 、 reusability , For systems with complex functions and high maintenance cost, object-oriented development is adopted .

(3) From the perspective of code reuse .

Both can realize code reuse , But process oriented is mainly about functions , Object oriented is mainly class .

(4) There's a picture, there's a truth

 

版权声明
本文为[Wang Mengjie]所创,转载请带上原文链接,感谢
https://cdmana.com/2022/134/202205141337362077.html

Scroll to Top