【C++ Primer(5th Edition) Exercise】练习程序 - Chapter 15(第十五章)(1-2)
以下程序由 Teddy van Jerry (我自己)编写并运行,基本保证正确性。(有时可能会为优化程序超前使用某些内容)
Contents
- Before we comb through the codes
- Exercise 15.1
- Exercise 15.2
- Next Chapter
- See also
Before we comb through the codes
(I am still working on this chapter.)
Review:
【C++ Primer(5th Edition) Exercise】练习程序 - Chapter 1(第一章)
【C++ Primer(5th Edition) Exercise】练习程序 - Chapter 2(第二章)
【C++ Primer(5th Edition) Exercise】练习程序 - Chapter 3(第三章)
【C++ Primer(5th Edition) Exercise】练习程序 - Chapter 4(第四章)
【C++ Primer(5th Edition) Exercise】练习程序 - Chapter 5(第五章)
【C++ Primer(5th Edition) Exercise】练习程序 - Chapter 6(第六章)
【C++ Primer(5th Edition) Exercise】练习程序 - Chapter 7(第七章)
【C++ Primer(5th Edition) Exercise】练习程序 - Chapter 8(第八章)
【C++ Primer(5th Edition) Exercise】练习程序 - Chapter 9(第九章)
TIP:标有(C++/11)者为C++/11标准下可以使用的题,若为老版本应加以修改。
Exercise 15.1
C++ Primer (5th Edition, English Version) Page 592
The base class defines as virtual those functions it expects its derived classes to define for themselves.
Exercise 15.2
C++ Primer (5th Edition, English Version) Page 595
However, sometimes a base class has members that it wants to let its derived classes use while still prohibiting access to those same members by other users. We specify such members after a
protectedaccess specifier.
Next Chapter
ALL RIGHTS RESERVED © 2021 Teddy van Jerry
欢迎转载,转载请注明出处。
See also
Teddy van Jerry 的导航页
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
