I have been learning about destructors, copy constructors, move constructors, and the rest. I also learned the recommendation about marking your destructor as virtual in a base class that has derived classes inheriting from it.
According to the Rule of Five, if I define a destructor within a class, I should also define the copy constructor and assignment operator, as well as the move constructor and assignment operator within the class.
My question about the Rule of Five is in relation to Inheritance and Polymorphism. If I create a base class that has derived classes inheriting from it, would the Rule of Five only apply to the base class, or would it also apply to the derived classes as well?