i am to understand trying learn about using classes in Xojo and I came across a need to extend a class.
In my example, I have a class, MyClass1. I have a second class, MyClass2, which extends my MyClass1.
How is this implemented? Extends seems to only work for Methods not classes.
Just set the Super of MyClass2 to MyClass1 – then MyClass2 takes on all the properties and methods of MyClass1, but you can override or add to them.
Ok. My example is coming from java and I was thinking there was a difference between the java extends and assigning a super class in Xojo.
Thanks.