Tag - Inheritance

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 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 16: class

Programming languages like C# are flexible and support many different paradigms, including object-oriented programming. Classes are the cornerstone of object-oriented programming in C#, allowing programmers to write modular, reusable code. In this article, we'll examine some code examples and go deeper into C#'s "class" keyword. What is a class in C#? In C#, a class is...

C# Keywords Tutorial Part 7: base

C# is a popular programming language that is widely used for building Windows applications, web applications, games, and much more. One of the essential features of C# is the base keyword. In this blog post, we will explore the base keyword in C# and its usage with code examples. What is the base keyword in...

C# Keywords Tutorial Part 3: as

Casting, often known as explicit type conversion, is done in C# with the "as" keyword. In particular when working with inheritance and interfaces, it is a safer technique to change the type of an object. We'll examine the "as" keyword's functionality in C# and present code samples to demonstrate how to use it in this...

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

Using Design Patterns With OOP To Improve Code Structure

Developers have been looking for ways to enhance the quality and maintainability of their code as software development progresses. OOP (object-oriented programming) and design patterns are two effective methods for achieving this objective. In the OOP programming paradigm, real-world entities and their interactions are represented by objects. It offers a modular approach to programming that...