Tag - object-oriented

C# Keywords Tutorial Part 84: throw

Popular programming language C# is frequently used to create software systems and applications. The "throw" keyword is one of C#'s features that might be helpful in managing exceptions and mistakes. This blog article will discuss the C# "throw" keyword and offer some code samples to demonstrate how to use it. In C#, throwing an exception...

C# Keywords Tutorial Part 80: string

C# is a popular programming language used for developing various types of applications, including web applications, desktop applications, games, and mobile applications. One of the most commonly used data types in C# is the string data type. In this blog post, we will discuss the string data type in C#, its properties, and some...

C# Keywords Tutorial Part 78: stackalloc

C# is a contemporary object-oriented programming language that is widely employed in creating various applications. One of its beneficial features is the ability to allocate memory on the stack with the use of the stackalloc keyword. This allows for quicker memory allocation and deallocation than the standard heap allocation methods. In this article, we'll...

C# Keywords Tutorial Part 75: set

C# is an object-oriented programming language that offers a variety of features to enhance the development process. One such feature is the "set" keyword. In this blog post, we'll explore what the "set" keyword is, how it works, and some code examples. What is the "set" keyword? The "set" keyword is used in C# to define...

C# Keywords Tutorial Part 73: sealed

The "sealed" keyword in C# is used to limit a class's or a member's ability to inherit from another class. A class or member thereof that has the designation "sealed" cannot be inherited by another class or overridden by a derived class. We will examine the C# term "sealed" and instances of its usage...

C# Keywords Tutorial Part 69: ref

Powerful programming language C# offers a number of features to make the development process simpler. The "ref" keyword is one of these characteristics since it enables you to pass a variable by reference rather than by value. We will examine the "ref" keyword in C# and several instances of its usage in this blog...

C# Keywords Tutorial Part 68: readonly

The readonly keyword in C# is used to declare a variable that, once initialized, cannot have its value modified. This keyword is applicable to parameters, local variables, and fields. In this article, we'll look at the C# readonly keyword and how immutable objects may be made with it. Usage of readonly keyword The readonly keyword can...

C# Keywords Tutorial Part 67: public

The "public" keyword in C# is used to specify the accessibility of a class member or type. When a member or type is marked as public, it can be accessed from any code that has access to the class or type. This keyword is an important part of encapsulation in object-oriented programming, as it...

C# Keywords Tutorial Part 59: operator

C# is a potent object-oriented programming language that provides developers with a wealth of capabilities and resources. The "operator" keyword is one such feature that enables programmers to build unique operators for their own types. We'll examine the "operator" keyword in C# and look at some code samples to show how to use it...

C# Keywords Tutorial Part 55: new

The new keyword in the object-oriented programming language C# enables programmers to generate fresh instances of classes and structs. This term is essential to C# programming since it allows developers to construct new objects that belong to a certain class or struct. This blog article will examine the new C# term in more detail and...