Cpp Primer Notes
Introduction
1 Getting Started with C++
2 Setting Out to C++
3-Dealing-with Data
const修饰符
4 Compound Types
5 Loops and Relational Expressions
6 Branching Statements and Logical Operators
7 Functions: C++’s Programming Modules
8 Adventures in Functions
函数模版
9 Memory Models and Namespaces
10 Objects and Classes
构造函数
析构函数
11 Working with Classes
函数重载
运算符重载
12 Classes and Dynamic Memory Allocation
13 Class Inheritance
访问权限控制
动态绑定与虚函数
抽象类
函数重写
14 Reusing Code in C++
15 Friends, Exceptions, and More
类型判定(Runtime Type Identification)
友元(friend)
异常处理
16 The string Class and the Standard Template Library
迭代器
17 Input, Output, and Files
18 Visiting with the New C++ Standard
19 Other
C++ Primer Note
Powered by
GitBook
函数重写
函数重写(overriding)
函数重写是与函数重载不同的概念。
函数重载针对的是在同一个类中的同名函数,或者是全局范围内的同名函数,而函数重写针对的是在类的继承中,基类与派生类中的同名函数。
results matching "
"
No results matching "
"