Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi All, :confused:
What is the difference between Brew Interfaces and classes? Shall I assume that Interfaces and classes are same? Can we implement class like constructs in 'C' (eg vtable implementation)

Thanks in Advance.
Sam

No, classes and interfaces are definitely not the same thing. A class is an implementation, while an interface is just a contract. A interface could be implemented by multiple classes. And a single class can implement multiple interfaces.
You might want to check out the book "Essential COM" by Don Box. He explains this far better than I can.

No, classes and interfaces are definitely not the same thing. A class is an implementation, while an interface is just a contract. A interface could be implemented by multiple classes. And a single class can implement multiple interfaces.
You might want to check out the book "Essential COM" by Don Box. He explains this far better than I can.