An interface contains only public methods without implementation and possibly constants. In the future release, an interface will be generated as a module. For instance, there is an interface "Shape" contains a public abstract method "area():Float". It will be generated as follows:
module Shape
def area
end
end
Classes that implement that interface use include to realize interface.
An interface contains only public methods without implementation and possibly constants. In the future release, an interface will be generated as a module. For instance, there is an interface "Shape" contains a public abstract method "area():Float". It will be generated as follows:
Classes that implement that interface use
include
to realize interface.