Abstract
Interfaces may contain method declarations (including properties and events) and static methods, 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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 Gordon Hogenson
About this chapter
Cite this chapter
(2006). Interfaces. In: C++/CLI. Apress. https://doi.org/10.1007/978-1-4302-0282-0_9
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0282-0_9
Publisher Name: Apress
Print ISBN: 978-1-59059-705-7
Online ISBN: 978-1-4302-0282-0
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books