- Identity, state, and behavior.
- When moving objects instead of copying, we omit the creation of temporary variables.
- 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.
- 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.
- 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.
- 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...
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand