Tag - override

C# Keywords Tutorial Part 96: virtual

C# is an object-oriented programming language that provides the "virtual" keyword to enable polymorphism and runtime method invocation. In this blog post, we will discuss the use of "virtual" in C# and provide code examples to illustrate its behavior. What is the "virtual" keyword in C#? The keyword "virtual" can be used in C# to change...

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 62: override

C# is an object-oriented programming language that allows developers to create reusable code through inheritance. The "override" keyword is an important feature of C# that enables developers to change the behavior of a method in a subclass. In this blog post, we'll explore what the "override" keyword is, how it works, and provide some code...

C# Keywords Tutorial Part 1: abstract

The use of abstract classes and methods is one of the powerful features supported by the object-oriented programming language C#. In this article, we'll examine the "abstract" keyword in C# in greater detail and consider how it might be utilized to produce more adaptable and extendable code. An abstract class is what? A class that can't...