Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Expert C++

You're reading from   Expert C++ Become a proficient programmer by learning coding best practices with C++17 and C++20's latest features

Arrow left icon
Product type Paperback
Published in Apr 2020
Publisher Packt
ISBN-13 9781838552657
Length 606 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Vardan Grigoryan Vardan Grigoryan
Author Profile Icon Vardan Grigoryan
Vardan Grigoryan
Shunguang Wu Shunguang Wu
Author Profile Icon Shunguang Wu
Shunguang Wu
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Section 1: Under the Hood of C++ Programming
2. Introduction to Building C++ Applications FREE CHAPTER 3. Low-Level Programming with C++ 4. Details of Object-Oriented Programming 5. Understanding and Designing Templates 6. Memory Management and Smart Pointers 7. Section 2: Designing Robust and Efficient Applications
8. Digging into Data Structures and Algorithms in STL 9. Functional Programming 10. Concurrency and Multithreading 11. Designing Concurrent Data Structures 12. Designing World-Ready Applications 13. Designing a Strategy Game Using Design Patterns 14. Networking and Security 15. Debugging and Testing 16. Graphical User Interface with Qt 17. Section 3: C++ in the AI World
18. Using C++ in Machine Learning Tasks 19. Implementing a Dialog-Based Search Engine 20. Assessments 21. Other Books You May Enjoy

Chapter 3

  1. Identity, state, and behavior.
  2. When moving objects instead of copying, we omit the creation of temporary variables.
  3. There aren't any differences between a struct and a class in C++ except the default access modifier. This is public for the struct, and private for the class.
  4. In the case of aggregation, the class that contains an instance or instances of other classes could be instantiated without the aggregate. The composition, on the other hand, expresses strong containment.
  5. Private inheritance hides the inherited members from the client code of the derived class. Protected inheritance does the same, but allows the derived classes in the chain to have access to those members.
  6. Typically, an introduction of a virtual function leads to augmenting the class with addition data members pointing to the table of virtual functions. Usually, that adds up to 4 or 8 bytes...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime