邓俊辉 MOOC 数据结构 ~ 预备知识 ~ C++ 语言程序设计基础:类、继承、重载、重写、虚方法、模板
Class A class is a user-defined type. https://en.cppreference.com/w/cpp/language/classes Inheritance The capability of a class to derive properties and characteristics from another class is called Inheritance. 一个类从另一个类派生属性和特性的能力称为继承 https://en.cppreference.com/w/cpp/language/derived_class Overload 重载 functions can have the same name but different type of parameters and different number of parameters. Operating overloading allows us to make operators work for user-defined classes 同一作用域中,同名函数的形式参数(指参数的个数、类型或者顺序)不同时,构成函数重载。 应用:操作符重载,为用户定义类型的操作数定制 C++ 运算符 Operator overloading is an example of C++