Thanks for your quick answer. What do you mean by "objects but not instances"? Isn't an object just an instance of a class? Or are Arduino objects rather like structs in C?
Yes, I know that. I'm struggling to come up with the right terminology to define the difference between object1 and object2 in this scenario:
MyClass object1;
MyClass *object2 = new MyClass();
Since the Arduino can't do the latter, I think of it as not being able to have instances. I guess that's not the right term, but I don't know what the right term to describe object2 is.
Is there a way in Arduino to declare a variable of a class and later assign an instance to it?
tamberg, can you elaborate on this question? Are you trying to create an instance of an object1 within another class (say...MyClass2). Then set variables of object1 via a method of object1?