在 Go 语言中,传统面向对象编程(OOP)的核心概念——类、继承——被重新诠释,以更简洁、更符合 Go 哲学的方式实现。本文详细介绍如何在 Go 中实现封装、继承、多态与抽象四大特性。
为了更好地呈现博客相关的图文、代码与节点逻辑,笔者深度定制了一套基于 Hexo 的 Markdown 扩展语法(MD-Plus)。
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.