Home  >  Article  >  Backend Development  >  Can golang have multiple inheritance?

Can golang have multiple inheritance?

(*-*)浩
(*-*)浩Original
2019-12-30 15:03:052728browse

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!

Statement:
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