Home > Article > Backend Development > 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!