The advantages and disadvantages of process oriented and object oriented programming???

Updated on technology 2024-02-26
11 answers
  1. Anonymous users2024-02-06

    Process-oriented is to analyze the steps needed to solve the problem, and then use functions to implement these steps step by step, and call them one by one when using them.

    Object-oriented is the decomposition of the problem into objects, and the purpose of building objects is not to complete a step, but to describe the behavior of something in the whole process of solving the problem.

  2. Anonymous users2024-02-05

    Hello dear<>

    The benefits of the three object-oriented features to programming are as follows: 1. Maintain a simple object-oriented program, and one of the characteristics of object-oriented programming is modularity. Entities can be represented as classes as well as classes with the same functionality in the same namespace, and a class can be added to the namespace without affecting other members of that namespace.

    This feature provides convenience for the maintenance of the program. 2. ExtensibilityIf there is a class with a certain function, you can expand this class and create a class with an extension function. 3. The reuse function is encapsulated in the class, and the class exists as an independent entity, so it can be very simple to provide a class library so that it can be reused.

    Object-oriented programming, as a new approach, is essentially an abstract thought process and object-oriented approach embodied in modeling. Models are used to reflect the characteristics of things in the real world. It is impossible for any model to reflect all the specific characteristics of objective things, but can only be an abstraction of the characteristics of things and the laws of change, and to describe the characteristics of the object more generally, more intensively, and more profoundly within the scope it involves.

    The abstraction achieved through the establishment of models is the deepening of people's understanding of objects.

  3. Anonymous users2024-02-04

    The introduction and popularity of a new programming paradigm is not necessarily because all aspects are stronger than the previous ones, but because there are some problems that are difficult to solve by existing paradigms in some specific fields. Just like the function formula is actually very old, and the sudden popularity of the formula recently is nothing more than its natural suitability for high-concurrency environments.

    Programming (programming) is actually a process of abstracting things in the real world and implementing them with computer languages.

    There are three core steps: understanding, abstraction, and implementation.

    Different ways of understanding will lead to completely different abstract results, and different abstract results will lead to different understandings.

    Finally, according to the comprehension and extraction, the time is completed by a specific language, but the result needs to be supported by the first two steps to fully understand.

    It's kind of like "what is a house, real estate design, building a house" in architecture.

  4. Anonymous users2024-02-03

    C is also a surface object, C++ encapsulation is nothing more than an aggregation of functions, and true process-oriented programming is coroutines and threads.

  5. Anonymous users2024-02-02

    In process-oriented programming, a problem is seen as a series of tasks that need to be completed, and functions are used to accomplish these tasks, with the focus of problem solving being on functions. Its main point is to adopt a top-down, step-by-step refinement program design method, using three basic control structures to construct a program, that is, any program can be constructed by three basic control structures: sequence, selection, and circulation.

    Object-oriented language is a kind of programming language that uses objects as the basic program structure unit, which means that the design used to describe is object-centric, and objects are the basic components of program running time. The language provides components such as class and inheritance, and has four main characteristics: recognition, polymorphism, category and inheritance.

    The difference between the two: 1) From the point of view of design ideas.

    Process-oriented: Programming focuses on analyzing the steps to solve the problem, as well as the process of completing the steps, and is a structured top-down approach to programming.

    Object-oriented: The focus of programming is to decompose the things that constitute the problem into objects, start from the part, and gradually build the whole program through iteration, which is a bottom-up programming method with data as the core and class design as the mainstay.

    2) From the point of view of the scope of application.

    Process-oriented: Since it does not involve operations such as instantiating objects, the program performance is higher and the overhead is less, so most of the resource-intensive systems such as cut-in type adopt process-oriented development.

    Object-oriented: Due to its abstraction, encapsulation, inheritance, and polymorphic characteristics, the system has better scalability, maintenance, and reusability, and object-oriented development is adopted for systems with complex functions and high maintenance costs.

    3) From the point of view of ** reuse.

    Both can be multiplexed, but the procedure-oriented is primarily functional, while the object-oriented is primarily class-oriented.

  6. Anonymous users2024-02-01

    When you learn object-oriented languages, you start with process-oriented. Object-oriented languages have features such as encapsulation, inheritance, and polymorphism.

  7. Anonymous users2024-01-31

    1. Simple maintenance.

    2. Scalability.

    3. Reuse.

  8. Anonymous users2024-01-30

    C is a process-oriented programming, and its most important feature is functions, which call sub-functions through the main function.

  9. Anonymous users2024-01-29

    The following is my own understanding.,It's relatively shallow.。。

    For example, when building a building, what you think of is how to build the building, **to have columns, **to have beams, **stairs, etc. (this is object-oriented), as for how to build columns, what to build, square and round, etc., these are not considered. That's process-oriented. And you build pillars, beams, bricks, and finally put them together.

    It's process-oriented. When we build a house, we should go to the corresponding building materials store and buy each material and build it, instead of grinding bricks seriously at home. Then you won't have time to enjoy it when you're done building your house.

    Hey.. That's why object-oriented ideas are developed much more efficiently than process-oriented ideas.

    Thinking about problems with object-oriented thinking is more in line with our way of thinking.

    In fact, we are all object-oriented in real life. For example: when you go to a restaurant to eat, you just need to explain what to eat, and it is necessary to understand how this dish is made, is it **, and how to grow this dish.

    This makes object-oriented simpler and more acceptable than thought-oriented.

    Object-oriented can also be said to think about the problem from a macro perspective, while process-oriented can be said to think about the problem from the details. In object-oriented, there is also process-oriented. In learning, both have to learn.

  10. Anonymous users2024-01-28

    Object-oriented is the totality of objects for a class or the result of a process.

    Process-oriented refers to the flow of a process, that is, it is easy to be strongly coupled, not easy to maintain, and not easy to maintain.

  11. Anonymous users2024-01-27

    Process-oriented.

    Advantages: The performance is higher than that of object-oriented, because the class needs to be instantiated when calling, the overhead is relatively large, and the resource consumption is more, such as single-chip microcomputer, embedded development, Linux Unix, etc., generally use process-oriented development, and performance is the most important factor.

    Disadvantages: It is not as object-oriented and easy to maintain, reuse, and extend.

    Object-oriented. Advantages: easy to maintain, easy to reuse, easy to expand, due to the characteristics of encapsulation, inheritance, and polymorphism of object-oriented, a low-coupling system can be designed, making the system more flexible and easier to maintain.

    Disadvantages: Lower performance than process-oriented.

Related questions
4 answers2024-02-26

First of all, beginners, no foundation is not terrible, because everyone comes from 0 foundation, there is nothing to be afraid of, as long as you pay more than others and study more, then you will accumulate more than others. >>>More

9 answers2024-02-26

For the introduction to programming, of course, choose Chongqing Dane. >>>More

7 answers2024-02-26

First understand the most basic elements --- the label of **, and then you will basically know everything.

9 answers2024-02-26

I don't understand what the concept of being super good at computers is when you are there, but if you want to learn, you don't necessarily have to be taught by others, first of all, you need to know a lot of computer knowledge, buy a few computer books to read, read more magazines, and practice more. If you really like computers, then you must study hard, get into a good university, learn a good computer major, and there are many options to choose from, such as computer networks, computer software, and so on. But the premise is that you must study well and be able to pass the exam. >>>More

3 answers2024-02-26

The specific steps are as follows:

Clause. 1. Specify what programming language you want to use (C or C++ or whatever); >>>More