I come from a MATLAB background. When I create class definitions, I can instantiate "empty" variable names and then later assign values or objects to them. I.e.
classdef myclass < handle
properties
var1
var2
end
end
a = myClass;
a.var1 = someOtherClassObject;
How do I do this in Python? I tried something like this:
class myClass:
def __init__(self):
var1
var2
a = myClass()
a.var1 = someOtherClassObject()
But that's not correct. The main purpose is to build a definition of my class, like a structure, and then later go and instantiate the variables as needed.
And help would be appreciated.