👉 Pre-inheritance is a concept in computer programming that refers to the use of inheritance to define multiple classes with different constructors. In C++ and other languages, this feature allows developers to create more flexible and reusable code by using the same constructor for both parent and child objects. Example: ```cpp class Parent { public: virtual void print() { std::cout << "Parent class" << std::endl; } }; class Child : public Parent { public: void print() override {