Tag - Polymorphism

Polymorphism in C#: Explained with Real-World Examples

One fundamental concept within the realm of object-oriented programming (OOP) is polymorphism, a concept that empowers the treatment of objects from different classes as if they were objects of a common base class. This capability fosters the creation of adaptable and reusable code. This blog post is dedicated to exploring the concept of polymorphism...

What Are The Benefits Of Functional Programming Over Object Oriented Programming?

In the world of programming, developers use different techniques known as programming paradigms to make their code more efficient and effective. Object-Oriented Programming (OOP) and Functional Programming (FP) are two of the most commonly used paradigms, each with its own set of advantages and disadvantages. In this article, we will delve into the benefits...

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 66: protected

Encapsulation, inheritance, and polymorphism are all features supported by the object-oriented programming language C#. "Protected" is one of the terms that is very important in inheritance. A derived class may access the members of its base class by using this keyword. In this blog article, we'll talk about the C# term "protected" and look...

C# Keywords Tutorial Part 57: object

C# is a contemporary programming language with an object-oriented approach utilized for building various software applications. One of the key elements in C# is the "object" keyword, which is employed to produce instances of classes and structures. This blog post will delve into the "object" keyword in C#, encompassing its definition, application, and some optimal...

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...

Understanding Internal Properties in JavaScript Classes: Examples and Best Practices

JavaScript classes are a fundamental tool for organizing and encapsulating code, and the use of internal properties is a powerful way to take your coding skills to the next level. In this blog post, we will explore some examples of internal properties in JavaScript classes, and how they can help you create more robust...