Creating Partial Classes in C sharp Arabic #61
Suggested Videos
Creating Partial Classes
1-All the parts spread across different files, must use the partial keyword.
2-All the parts spread across different files, must have the same access modifiers.
3-if any of the parts are declared abstract, then the entire type is considered abstract.
4-if any of the parts are declared sealed, then the entire type is considered sealed.
5-if any of the parts inherit a class ,then the entire type inherits that class.
6-C# does not support multiple class inheritance .Different parts of the partial class., Must not specify different base classes.
7-different parts of the partial class can specify different base interfaces, and the final type implements all of the interfaces listed by all of the partial declarations.
8- Any members that are declared in a partial definition are available to all of the other parts of the partial class.
Tags:
C sharp