Skip to content

About interface #3

@meisyal

Description

@meisyal

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions