java - What is the difference between golang's structure and object in c++?
仅有的幸福
仅有的幸福 2017-05-16 13:27:31
0
2
780

They feel very similar, and they are similar to the c structure. Do you want to know what the specific differences are? Why not just call it an object, but a structure? Is it because this structure has no concept of class?

仅有的幸福
仅有的幸福

reply all(2)
阿神

Because writing object-oriented programming in go is different from traditional object-oriented programming. For example, go does not have abstract methods. Objects in C++ can have abstract methods.

This article has a more detailed explanation: http://hackthology.com/golang...

黄舟

It should be class vs structure.
The instantiation of a class is called an object. .
Is there a misunderstanding in the question? .

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!