Just wandering if this is a bug.
I have a constructor called tab.

then I have created a horizontal tab constructor which extends tab

This class works seemingly fine but when I use the following constructor

I am able to call it both using horizontaltab and tab;
This constructor takes a prebuilt horizontal tab as a parameter to mimick its current tab structure.

this gives me no error when initialized, however obviously causes problems later, as I cannot call functions associated with the horizontal tabs.