Just a quick question. I understand that Singleton patterns can be extended and that inheritance is applied. I was just wondering if I called a base class and then a extended class is there additional overhead than if I just called the extended class by itself?
Just a quick question. I understand that Singleton patterns can be extended and that
Share
If what you’re talking about is something like
then yes, there is overhead in the call being forwarded from the child class’s
DoSomething()to the parent class’s. IfExtendedSingletondoes not redefineDoSomething(), though, there is no additional overhead.