c++ inheritance constructor
- Create a base class with a constructor that takes a parameter.
- Create a derived class that inherits from the base class.
- In the derived class, create a constructor that takes a parameter.
- Inside the derived class constructor, call the base class constructor with the appropriate parameter using the constructor initialization list.