According to the specification of the Fore language, each custom class can inherit from a basic class or already specified custom class. The class can implement a number of interfaces.
Specify a class as a parent object in the custom class description.
Interface IMyInterface
End Interface IMyInterface;
Class TestClass: IMyInterface
End Class TestClass;
When the specified code is compiled, the following error is displayed: Interface cannot inherit interface. To resolve the error, first, specify a basic class in the class description and only then specify the interface. For example: Class TestClass: Object, IMyInterface.
See also: