Home Help Center

A question about the differences between interface and class

ouyangtaoouyangtao Member ouyang taoOrganization: jilin universityProject: no project
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 ..

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    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.
Sign In or Register to comment.