2019年/12月/31日

首页回退

Go OO

结构代替类

组合代替继承

多态

学习系列

相关:

减少类型层次

go中的组合

go是oo语言吗

Go is a combination of paradigms.

It satisfies majority of Object Oriented characteristics (both mainstream and original ones, as stated at the beginning of the article) to solve general software extendibility issues and provide a way for developers to design domains more naturally

It masters Functional/Procedural/Objects characteristics and Messaging to solve problems with concurrency and parallelism in the era of multicore CPU hardware architecture