Class Extensions possible error

Just wandering if this is a bug.

I have a constructor called tab.

image

then I have created a horizontal tab constructor which extends tab

image

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

image

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.

image

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

1 Like

Processing.org/reference/super.html

2 Likes

Hey @paulgoux – so glad this was resolved with super()!

(Just a reminder for the future that in general we request that people paste code blocks or link to an online sketch / repo – not screenshots.)

2 Likes