4 ms·
> I can say that type (class in OOP) from library A conforms to a type class (interface in OOP) in library B Does that involve adding code to make it conform?
by Dylan16807 4y ago
> I can say that type (class in OOP) from library A conforms to a type class (interface in OOP) in library B
Does that involve adding code to make it conform?
Either way, there are languages based on classes and interfaces where you can do that.
- js8 4y agoYes, the point is, the code to make it conform is independent on both A and B. So no need to modify either library. And sure, we can discuss what OOP is, but I am using the most widely used definition of classes and interfaces, as understood by Java and .NET.