Can golang have multiple inheritance?

(*-*)浩
Release: 2019-12-30 15:03:05
Original
2750 people have browsed it

Can golang have multiple inheritance?

Multiple inheritance is not supported in most object-oriented programming languages. Because in a class-based system, multiple inheritance greatly increases the complexity of the compiler.

#Go language uses combination to implement inheritance, so it can also easily implement multiple inheritance.                                                                                                                                                  

The above is the detailed content of Can golang have multiple inheritance?. 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 admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template