A base class `A` and derived class `B` are implemented as such:
```
class A; class B;
class A { private: int value; public:
constexpr inline A(int const value) : value{value} {}
constexpr inline A(A const& a) : value{a.value} {}
constexpr inline A(B const&);
};
class B : public A {
private: enum {off, on} whatever;
public: constexpr inline B(int const value) : A(value), whatever{on} {}
};
```
with class `A` specifying a multiple constructors including one that accepts a class `B` object.
=============================
```
class A; class B;
class A { private: int value; public:
constexpr inline A(int const value) : value{value} {}
constexpr inline A(A const& a) : value{a.value} {}
constexpr inline A(B const&);
};
class B : public A {
private: enum {off, on} whatever;
public: constexpr inline B(int const value) : A(value), whatever{on} {}
};
```
with class `A` specifying a multiple constructors including one that accepts a class `B` object.
=============================