
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
Important Keywords in C#
Some of the key keywords in C#, include.
- Sealed
- Params
- Internal
- this
- abstract
Sealed
When you use sealed modifiers in C# on a method, then the method loses its capabilities of overriding. The sealed method should be part of a derived class and the method must be an overridden method.
Params
While declaring a method, you are not sure of the number of arguments passed as a parameter, then use params. C# param arrays can let you know about this.
Internal
Internal access specifier allows a class to expose its member variables and member functions to other functions and objects in the current assembly. Any member with internal access specifier can be accessed from any class or method defined within the application in which the member is defined.
this
The “this” keyword in C# is used to reference the current instance of the class. It is also used to differentiate between the method parameters and class fields if they both have the same name.
abstract
The abstract keyword in C# is used for abstract classes. An abstract class in C# includes abstract and non-abstract methods. You cannot instantiate an abstract class.
- Related Articles
- Keywords in C#
- C++ Keywords
- Reserved keywords in C++?
- Variables and Keywords in C
- What are reserved keywords in C#?
- What are contextual keywords in C#?
- char vs string keywords in C#
- How many keywords are there in C++?
- Tokens vs Identifiers vs Keywords in C++
- Try/catch/finally/throw keywords in C#
- What are signed and unsigned keywords in C++?
- Keywords in Java
- Keywords in Python
- Go Keywords
- What are the different types of keywords in C language?
