If you don’t know what I’m talking about, you would benefit from some tutorials. You cannot plan how to make something in a language you haven’t used. Here’s a couple of tutorials that6 should answer all the questions you just asked.
class_name MyObject extends Control
var my_variable: Array[MyObject]