ecnf
ecnf halt
ecnf halt
10
0.0 (0)
Set of flashcards Details
Flashcards | 10 |
---|---|
Language | Deutsch |
Category | Computer Science |
Level | University |
Created / Updated | 26.02.2014 / 26.02.2014 |
Licencing | Not defined |
Weblink |
https://card2brain.ch/box/ecnf
|
Embed |
<iframe src="https://card2brain.ch/box/ecnf/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>
|
Characteristics of Interfaces (12)
- Interface = purely abstract class; only signatures, no implementation.
- May contain methods, properties, indexers and events (no fields, constants, constructors, destructors, operators, nested types).
- Interface members are implicitly public abstract (virtual).
- Interface members must not be static.
- Classes and structs may implement multiple interfaces.
- Implemented by classes and structs
- A class can inherit from a single base class, but can implement multiple interfaces.
- A struct cannot inherit from any type, but can implement multiple interfaces.
- Every interface member (method, property, indexer) must be implemented or inherited from a base class.
- Implemented interface methods must not be declared as override.
- Implemented interface methods can be declared as virtual or abstract (i.e. an interface can be implemented by an abstract class).
- If subclasses of MyClass should be able to override Add() it must be declared as virtual (although Add() is already implicitly virtual in IList).
- Interfaces can extend other interfaces.
imlicit and dynamic variables