basics of inheritance - part 2

invoking method of a base class in a derived class Typically, if your specialized implementations in derived class need to re...

Coding

basics of inheritance - part 2

invoking method of a base class in a derived class Typically, if your specialized implementations in derived class need to re...

Coding

basics of inheritance - part 1

C++ syntax of derivation 1234class base{ //...base class members} 1234class Derived: access-specifier Base{...

Coding

basics of inheritance - part 1

C++ syntax of derivation 1234class base{ //...base class members} 1234class Derived: access-specifier Base{...

Coding

union & struct & aggregate & constexpr

using aggregate initialization on classes and structs aggregate initialization syntax 1Type objectName = {argument1,...,...

Coding

union & struct & aggregate & constexpr

using aggregate initialization on classes and structs aggregate initialization syntax 1Type objectName = {argument1,...,...

Coding

union and struct

sizeof() a char* pointer's size is fixed at 4 bytes (on 32-bit system, and double it on 64-bit) and is independent of the vol...

Coding

union and struct

sizeof() a char* pointer's size is fixed at 4 bytes (on 32-bit system, and double it on 64-bit) and is independent of the vol...

Coding

constructor -3

move constructor 123456789class MyString{ // pick implementation from Listing 9.9};MyString Copy(MyString& sour...

Coding

constructor -3

move constructor 123456789class MyString{ // pick implementation from Listing 9.9};MyString Copy(MyString& sour...

Coding
12345