Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Interface using Caché

Question
Flávio Lúcio Na... · May 6, 2021

Interface using Caché

Hello everyone,

 

I have a doubt, its possible to use interface like C# using COS? 

Remember, interface is different from Abstract Class, because a abstract class can implement code in the method, so I don't want this, I want only define the methods from Class, not allowing implement code.

Description of C# interface: An interface defines a contract. Any class or struct that implements that contract must provide an implementation of the members defined in the interface. Beginning with C# 8.0, an interface may define a default implementation for members.  

Link: interface - C# Reference | Microsoft Docs
 

#Caché #InterSystems IRIS
Product version: IRIS 2020.1

Source URL:https://community.intersystems.com/post/interface-using-cach%C3%A9