- 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.
- Magento 2 Theme Design(Second Edition)
- Java技術手冊(原書第7版)
- INSTANT Weka How-to
- GitLab Repository Management
- YARN Essentials
- Mastering macOS Programming
- 軟件項目管理實用教程
- Hands-On Reinforcement Learning with Python
- C++ Fundamentals
- Illustrator CS6設計與應用任務教程
- Xcode 6 Essentials
- 工業機器人離線編程
- 玩轉.NET Micro Framework移植:基于STM32F10x處理器
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- PhoneGap 4 Mobile Application Development Cookbook