- Expert C++
- Vardan Grigoryan Shunguang Wu
- 143字
- 2021-06-24 16:34:04
Summary
In this chapter, we discussed the fundamental concepts of object-oriented programming. We touched on the low-level details of classes and the compiler implementation of the C++ object model. Knowing how to design and implement classes without actually having classes helps a lot in using the classes the right way.
We also discussed the need for inheritance and tried to employ composition instead of inheritance wherever it might be applicable. C++ supports three types of inheritance: public, private, and protected. All of these types have their applications in particular class designs. Finally, we understood the use and power of polymorphism by bringing an example that drastically increases the convenience of the client code.
In the next chapter, we will learn more about templates and template metaprogramming, which we will use as the basis to dive into a new C++20 feature called concepts.
- 玩轉Scratch少兒趣味編程
- Implementing Modern DevOps
- 自己動手寫搜索引擎
- Mobile Application Development:JavaScript Frameworks
- 機器學習系統:設計和實現
- Reactive Programming with Swift
- Visual Basic程序設計(第3版):學習指導與練習
- Big Data Analytics
- Julia高性能科學計算(第2版)
- Python圖形化編程(微課版)
- Rust游戲開發實戰
- 從零開始:UI圖標設計與制作(第3版)
- Bootstrap for Rails
- 動手打造深度學習框架
- SQL Server 2008中文版項目教程(第3版)