-
Notifications
You must be signed in to change notification settings - Fork 1
"Base" Keyword
Mario Gutierrez edited this page Jan 7, 2017
·
2 revisions
Just like Java's super
, C# has the base
keyword to reference the parent class.
public MyClass(int a, string b) : base(a)
{
this.b = b;
}
You of course can use base
to access members of the base class as well.
- Abstract Classes
- Access Modifiers
- Anonymous Methods
- Anonymous Types
- Arrays
- Attributes
- Console I/O
- Constructors
- Const Fields
- Delegates
- Enums
- Exceptions
- Extension Methods
- File IO
- Generics
- Interfaces
- Iterators
- LINQ
- Main
- Null Operators
- Parameters
- Polymorphism
- Virtual Functions
- Reflection
- Serialization
- Strings
- Value Types
- "Base" Keyword
- "Is" and "As"
- "Sealed" Keyword
- nameof expression