Create Interface

hi,
I created a class with some empty methods, used ‘Extract Interface’ to add it to the interface list, but when I created a new class and chose to use the new interface my new class did not have any methods from the interface,
what I’m doing wrong ?
could not find any documentation about creating and using interfaces …

Try this:

https://documentation.xojo.com/getting_started/object-oriented_programming/interfaces.html

thanks Kem,

it took me a while to find out how it works, but at the end I did it.
what I do not understand is why I have to create a property with type of my new interface first before I can use the interface,
but it works now,

thanks

[quote=424288:@Johann Kienbrandt]thanks Kem,

it took me a while to find out how it works, but at the end I did it.
what I do not understand is why I have to create a property with type of my new interface first before I can use the interface,
but it works now,

thanks[/quote]
To be clear, you can also cast a class using the interface. For instance, if you had an interface called Transport with a method named Carry and a class named Basket which has the Transport interface applied to it, you can still make the property of type Basket. You would just need to check at runtime…

dim b as new Basket If b IsA Transport then Transport(b).Carry End if