📄 errata
字号:
page 765
--------
Manager c'tor definition needs a qualifier:
Manager::Manager(...
page 767
--------
too many semicolons:
Employee e("Lisa Lim", 36000);;
ppg 767-8
---------
I realize this is possibly a silly question, but in the following:
"The use of the dynamic type applies only to the selector for a member
function."
By selector you mean the recipient of the message, correct?
ppg 767-8
---------
The following example needs to be fixed up a bit:
Manager man = new Manager(. . .);
cout << man << "\n"; // Executes Manager function
Ptrs?
Manager* man = new Manager(. . .);
cout << *man << "\n"; // Executes Manager function
...
print(cout, man);
vs.
print(cout, *man);
pg 774 (top)
-------------
You refer reader to Common Error 21.1. Did you want 21.2?
Syntax 21.4, pg 778
-------------------
The class keyword is missing from the example
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -