This forum has been archived. Please start a new discussion on GitHub.

A question about the differences between interface and class

as mentioned in the manual , "classes allow behavior to be implemented on the client side, whereas interfaces allow behavior to be implemented only on the server side" .
i want to know why interfaces can't be implemented in the client side ?

if the classes don't have the data,just only the operation.what are the differences between the classes and the interface?

thanks ..


  • marc
    marc Florida
    Thanks for pointing this out. This sentence in the manual is not correct, and we will fix this. The main difference between classes and interfaces is that the classes support data members, and interfaces support multiple inheritance. Both can be passed by value, or implemented on the client side, although there are probably not many interesting use cases for this for interfaces.