Learn 3: Create Your First Class
6. Using your Container Class
To create a new container class and initialize all our variables all we need to do is call the init() function, exactly as we have done in previous missions.
As we will be controlling everything from a button panel in this mission, let’s call this init() function at the beginning of the Interactive Control Code cell.
That way we can be sure that the object (and the variables that it contains) will always be initialized immediately before the button panel appears.
We’ve already done this for you. Can you find the line in question? Turn Line Numbers on to be able to refer to it.