ecnf
ecnf halt
ecnf halt
10
0.0 (0)
Kartei Details
Karten | 10 |
---|---|
Sprache | Deutsch |
Kategorie | Informatik |
Stufe | Universität |
Erstellt / Aktualisiert | 26.02.2014 / 26.02.2014 |
Weblink |
https://card2brain.ch/box/ecnf
|
Einbinden |
<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
Parameter modifiers
void Parameters(int i, ref int ref_i, out int out_i)
- Implications on assignment
- On return value
variable number of params
void Parameters(int i, params int[] ints)
- Must be the last parameter