Is Golang object-oriented or process-oriented?

Guanhui
Release: 2020-06-10 10:39:54
Original
5759 people have browsed it

Is Golang object-oriented or process-oriented?

#Is Golang object-oriented or process-oriented?

Golang can be said to be neither, because Golang has no obvious tendency, but prefers to let programmers consider how to use it. Perhaps its characteristic is flexibility, programming Readers can use it to implement object-oriented, but it does not support object-oriented semantics itself.

Object-oriented

Object-oriented (OO) is the focus of the current computer industry. It is the software of the 1990s. Mainstream development methods. Object-oriented concepts and applications have transcended programming and software development and expanded to a wide range. Such as database systems, interactive interfaces, application structures, application platforms, distributed systems, network management structures, CAD technology, artificial intelligence and other fields.

When it comes to object-oriented, there are many articles in this area. However, there are very few that explicitly give or state the definition of an object - at least I haven't found one yet. Initially, "object-oriented" specifically refers to the use of design methods such as encapsulation, inheritance, polymorphism, and abstraction in programming. However, this definition obviously no longer fits the situation. Object-oriented thinking has been involved in all aspects of software development. For example, object-oriented analysis (OOA, Object Oriented Analysis), object-oriented design (OOD, Object Oriented Design), and what we often call object-oriented programming (OOP, Object Oriented Programming). Many articles about object-oriented only describe the issues that need to be paid attention to in object-oriented development or the better design methods adopted. Reading these articles can benefit you to the greatest extent only if you truly understand what an object is and what object-oriented is. At this point, I am afraid that beginners and even those who have been engaged in related work for many years will have a vague concept of them.

Procedure Oriented

"Procedure Oriented" (Procedure Oriented) is a process-centered programming idea. These are programming with the primary goal of what is happening, as opposed to object-oriented who is being affected. The obvious difference from object-oriented is encapsulation, inheritance, and classes.

Recommended tutorial: "Go Tutorial"

The above is the detailed content of Is Golang object-oriented or process-oriented?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!