CHAPTER 9Interfaces
Interfaces may contain method declarations (including properties and events), static methods, and static fields, but no instance method definitions and no instance data members. As you already know, interfaces partially take the place of multiple inheritance in C++/CLI. However, the words "inherit from" are not used; rather, the word used is "implements," since the class that implements an interface must provide the method bodies for all the instance methods declared in the interface, even if it is an abstract class.
Note Although the CLI itself does allow an abstract class implementing an interface to leave unimplemented methods, this is not allowed in C++/CLI.
You're probably used to using pointers or references to base ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access