How to derive a class from ALight class?

I tried that already but it was returning nullptr, that’s my main problem because the component from the base class is not initialising.