This is a pretty basic question but I\'m still unsure:
If I have a class that will be instantiated millions of times -- is it advisable not to derive it from some o
Inheriting from a class costs nothing at runtime.
The class instances will of course take up more memory if you have variables in the base class, but no more than if they were in the derived class directly and you didn't inherit from anything.
This does not take into account virtual methods, which do incur a small runtime cost.
tl;dr: You shouldn't be worrying about it.