C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Tags
No tag found
Content Filter
Articles
Videos
Blogs
Resources
News
Forums
Interviews
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Ziggy Rafiq(5)
Jaimin Shethiya(4)
Aarav Patel(3)
John Godel(3)
Tural Suleymani(3)
Thiago Vivas(3)
Nishant Mittal(3)
Hari Lakkakula(2)
Ajay Narkhedkar(2)
Rajesh Gami(2)
Baibhav Kumar(2)
Vishal Yelve(2)
Ng Cheehou(2)
Ajay Kumar(2)
Ayush Gupta(2)
Jitendra Mesavaniya(2)
Sardar Mudassar Ali Khan (2)
Rikam Palkar(2)
Prakash Tripathi(2)
Rahul Sahay(2)
Sudarshan Hajare(1)
Nabaraj Ghimire(1)
Mariem Moalla(1)
Mohan Veer Singh(1)
Abhishek Yadav(1)
Sandhiya Priya(1)
Akshay Amin(1)
Nitin (1)
Mahesh Chand(1)
Sangeetha S(1)
Uday Dodiya(1)
Vishal Joshi(1)
Sanjay Kumar(1)
Sreenath Kappoor(1)
Ashutosh Singh(1)
Md Sarfaraj(1)
Alpesh Maniya(1)
Gurpreet Arora(1)
Jagannath Sethi(1)
Pradeep Vaishya(1)
Arindam Dawn(1)
Naresh Beniwal(1)
Ashish Bhatnagar(1)
Hammad Maqbool(1)
Anu Viswan(1)
Navin Prakash(1)
Usama Hafeez(1)
Azim Zahir(1)
Pramod Singh(1)
Munib Butt(1)
Pankajkumar Patel(1)
Umesh Singh(1)
Vijay Kumari(1)
Roshan Patil(1)
Abubackkar Shithik(1)
Herve Roggero(1)
Gaurav Jain(1)
Farhan Ahmed(1)
Zain Ul Hassan (1)
Vikas Gupta(1)
Usama Shahid(1)
Sachin Kalia(1)
Debendra Dash(1)
Vikram Chaudhary(1)
Humza Tufail(1)
Ibrahim Ersoy(1)
Saillesh Pawar(1)
Amit Choudhary(1)
Rahul (1)
Mukesh Kumar(1)
Resources
No resource found
Diving in OOP (Polymorphism and Inheritance – Part 3)
Aug 11, 2026.
Master C# polymorphism and abstract classes. Learn virtual, override, new, and base for dynamic binding and incomplete class definitions.
Abstraction in Enterprise Applications: A Practical Guide (with a C# Insurance Case Study)
Jul 23, 2026.
Master enterprise application abstraction! Learn practical C# patterns for evolving systems, avoiding costly rewrites with strategic interface design.
Difference between Abstract Class and Interface in C#
Apr 13, 2026.
Unlock C# abstraction! Explore the key differences between abstract classes and interfaces with real-world examples. Learn when to use each for cleaner, scalable code.
Difference Between Abstract Class and Interface in C# With Examples
Apr 03, 2026.
Explore the nuances of Abstract Classes vs. Interfaces in C#. Learn their key differences, use cases, and real-world examples for better C# development.
Difference Between Abstract Class and Interface in C#
Mar 26, 2026.
Unlock the power of C#! Learn the difference between abstract classes and interfaces with clear explanations, examples, and use cases. Write cleaner, scalable code!
Abstract Factory Pattern in .NET
Feb 24, 2026.
Learn the Abstract Factory Pattern! This creational pattern simplifies creating families of related objects (like payment processors) without specifying concrete classes. See a practical .NET example!
Abstract vs Virtual in C#
Jan 26, 2026.
Confused about abstract vs. virtual in C#? This guide clarifies their differences, usage scenarios, and common pitfalls. Learn when to use each for robust code design.
Understanding Interfaces in C#: Why Default Interface Implementations Exist Alongside Abstract Classes
Dec 27, 2025.
Explore C# interfaces, their importance, and the evolution to default implementations in C# 8. Learn how this feature solves backward compatibility issues and enables safer software evolution in enterprise systems.
Abstract Class and Abstraction in C#: A Technical Deep Dive
Dec 12, 2025.
Learn abstraction in C# with practical examples. This article explains abstract classes, their structure, usage, and real-world code implementations in detail.
Understanding Classes and Types of Classes in C# – A Complete Guide
Dec 05, 2025.
This article provides a complete and easy-to-understand guide to classes and all types of classes in C#. It covers the fundamentals of what a class is, how objects work, and explains each class type—including concrete, abstract, sealed, static, partial, nested, anonymous, POCO, generic, and record classes—with clear examples and real-world applications.
Interface vs Abstract Class in C#: Real-World and Programming Examples Explained in Simple Language
Nov 27, 2025.
Unlock the power of C#! Explore interfaces vs. abstract classes with real-world and programming examples. Learn when to use each for optimal design and code reuse.
A Practical Comparison of Interface vs Abstract Class Using a Real ASP.NET Core Project
Nov 27, 2025.
Explore interface vs abstract class in ASP.NET Core with a practical e-commerce example. Learn when to use each for cleaner, maintainable, and scalable code. Master real-world application architecture and dependency injection.
C# .NET Object-Oriented Programming – A Complete Guide (Beginner to Advanced)
Nov 23, 2025.
This article provides a complete and easy-to-understand guide to Object-Oriented Programming (OOP) in C# .NET, covering core concepts such as classes, objects, variables, methods, constructors, access modifiers, encapsulation, inheritance, polymorphism, abstraction, and interfaces. With clear explanations and practical examples, it helps learners build a strong foundation for real-world .NET development and technical interview preparation. Ideal for beginners, students, and professionals looking to improve their understanding of OOP principles in C#.
Difference Between Abstract Class and Interface in C#
Oct 29, 2025.
Understand the core differences between abstract classes and interfaces in C# with a practical Windows Forms example. Learn when to use each for better design.
Chapter 12: Polymorphism: Virtual Functions and Abstract Classes in C++
Oct 23, 2025.
Learn about virtual functions, the 'virtual' keyword, and how it facilitates runtime method resolution. Discover abstract classes and pure virtual functions for defining interfaces and ensuring derived class implementation. Understand the importance of virtual destructors for proper memory management in polymorphic hierarchies.
What are abstract classes, and how do you use them in Python?
Aug 21, 2025.
Abstract classes are a key concept in object-oriented programming (OOP) that provide a way to define a blueprint for other classes. They help enforce rules, ensuring that child classes implement specific methods. This article explains what abstract classes are, how they work in Python, and how to use them with examples.
Difference between interface and abstract class?
Aug 07, 2025.
Learn the fundamental differences between interfaces and abstract classes in C#. This article breaks down their key characteristics, use cases, and performance implications with code examples. Ideal for developers and interview preparation.
Difference Between Abstract Class and Normal Class in C#
Jul 04, 2025.
The difference between Abstract Class and a Normal Class in C#, including definitions, concepts, use cases, and examples.
Types of Classes in C# with Examples | Concrete, Static, Abstract, Sealed, and More
Jun 12, 2025.
Learn all the types of classes in C# with clear examples and use cases. Understand when to use abstract, static, sealed, generic, and partial classes in .NET Framework.
Abstract Factory Pattern for Notification Services in C# 14
Apr 22, 2025.
Discover how to use the Abstract Factory Pattern in C# 14 to build a flexible, provider-agnostic notification system.
Abstract Factory Pattern for Database Access in C# 14
Apr 21, 2025.
This article covers creating flexible, maintainable code for handling multiple databases, while leveraging modern C# features for clean architecture and scalability.
🎨 Abstract Factory Pattern in C# 14
Apr 21, 2025.
In modern C# development, particularly within enterprise applications, it’s common to deal with families of related objects.
Understanding Abstract Factory Design Pattern
Feb 01, 2025.
This article explains the Abstract Factory Design Pattern in C#, demonstrating its implementation with a real-world payment gateway example. It covers abstract products, factories, concrete implementations, and client usage.
When to Use Abstract Class vs Interface and Why?
Nov 29, 2024.
This article explains when to use abstract classes vs. interfaces in C# through two scenarios. The first scenario demonstrates how abstract classes help avoid code duplication, while the second shows how interfaces enable multiple inheritance.
Advanced C# 13 and .NET 9 Features for Expert .NET Engineers
Nov 22, 2024.
With this guide, you will learn about enhanced pattern matching, static abstract members, Native AOT, and much more in C# 13 and .NET 9. Written by Ziggy Rafiq, this is the best resource for experienced .NET Software Engineer Leads.
.NET 9 Features with Code Example
Nov 19, 2024.
Learn how abstraction simplifies complex systems by unifying interfaces, abstract classes, and dependency injection. Build modular, maintainable, and testable applications with this comprehensive guide.
Solid Introduction to Expression Trees in C#
Sep 26, 2024.
This article provides a comprehensive introduction to Expression Trees in C#. You'll learn about their structure, how they represent code as data, and their applications in LINQ queries.
Abstract Factory Pattern: Designing Families of Related Objects in C#
Sep 09, 2024.
The Abstract Factory Pattern provides an interface for creating families of related objects without specifying their concrete classes. It ensures consistency and flexibility in object creation, useful in scenarios like UI design, configuration systems, and data access layers, promoting modular and decoupled design.
Using Factory Patterns in C# 12 to simplify A/B testing
Aug 30, 2024.
Find out how Ziggy Rafiq simplifies A/B testing with feature toggles in C# 12 by using Factory and Abstract Factory design patterns.
C# 12 Design Patterns: Factory and Abstract Factory
Aug 29, 2024.
By Ziggy Rafiq, discover how Factory and Abstract Factory design patterns simplify the creation of complex objects in C# 12.
Abstract Factory Design Pattern in .NET Core C# 12
Aug 28, 2024.
In this detailed article by Ziggy Rafiq, you will learn how to implement key components like AbstractFactory, ConcreteFactory, AbstractProduct, and ConcreteProduct in .NET Core with C# 12. By leveraging the modern features of C# 12 and .NET Core, this pattern enhances flexibility and scalability in software development.
Builder Design Pattern in .NET Core C#
Aug 09, 2024.
The Builder Design Pattern in .NET simplifies constructing complex objects by using a step-by-step approach. It involves components like Abstract Builder, Concrete Builder, Director, and Product to separate the construction process from its representation.
C# Abstract Class with Examples
Jul 17, 2024.
Explore the fundamentals of C# abstract classes through clear examples and detailed explanations. Learn how abstract classes facilitate code reusability and polymorphism in object-oriented programming, with practical demonstrations of their usage and implementation in C#.
Interface Vs Abstract Class
Jul 10, 2024.
This article delves into the differences between interfaces and abstract classes in object-oriented programming. It explores their roles in languages like Java and C#, highlighting key concepts such as inheritance, polymorphism, and abstraction.
Sealed Class VS Abstract Class with Real-time Cases
Jul 10, 2024.
This article explores the differences between sealed and abstract classes, providing real-time case studies to illustrate their use in software development. Learn how sealed classes restrict inheritance, while abstract classes serve as blueprints for other classes.
Detailed explanation of Abstract Factory design pattern
Jul 08, 2024.
The Abstract Factory design pattern is a creational pattern that provides an interface for creating families of related or dependent objects without specifying their concrete classes.
How to use the Abstract Factory Pattern in C# with the Interface Pattern
Jul 03, 2024.
Learn how these design patterns improve flexibility, scalability, and maintainability in software development by exploring the Abstract Factory Pattern and Interface Pattern in C# with Ziggy Rafiq. Become proficient in object-oriented design by taking advantage of practical examples and implementing them step-by-step.
Understanding Builder Design Pattern
Jul 01, 2024.
Discover the Builder Design Pattern, a creational pattern that separates the construction of a complex object from its representation. Learn how it simplifies object creation, especially for objects requiring numerous parameters.
Abstract Data Types(ADT)
Jun 13, 2024.
Abstract Data Types (ADTs) are a fundamental concept in computer science, representing data structures defined by their behavior rather than their implementation. ADTs provide a way to model data and operations, enabling encapsulation and abstraction.
Hide Base Class Members in C# .NET with new Keyword
May 30, 2024.
In C# .NET, the new keyword allows derived classes to hide members of a base class. This technique, known as member hiding or shadowing, is used to define a new implementation for a member without overriding the base class version.
Concepts of Threads, Thread Pools, and Tasks in C#
May 13, 2024.
Threads are the smallest units of execution, enabling concurrency but requiring manual management. Thread pools efficiently manage threads for short-lived tasks, while tasks abstract asynchronous operations for responsive applications.
Abstract Class in .NET C#: Syntax, Usage and Example
May 13, 2024.
Abstract classes in .NET C# provide a blueprint for other classes to inherit from. They contain abstract methods that must be implemented by derived classes. Learn syntax, usage, and see examples to understand how abstract classes facilitate code reusability and enforce design contracts.
Abstract Factory Design Pattern in .NET Core C#
May 10, 2024.
The Abstract Factory Design Pattern, according to the Gang of Four Definition, offers a means of encapsulating a collection of factories with a shared concept without defining their specific classes.
Exploring Interface and Abstract Class in C# Programming
Apr 30, 2024.
In C#, both interfaces and abstract classes are powerful tools for designing flexible and reusable code. Let's delve into the concepts of interface and abstract class, explore their differences, and see examples of how they are used.
Learn about Static Class in C#
Apr 16, 2024.
This article explores the concept of static classes in C#, detailing their characteristics, usage, and limitations. It covers static class setup, static class features, static method usage, and dependency injection considerations.
Difference Between Sealed Class & Abstract Class in C#
Mar 28, 2024.
In object-oriented programming (OOP) with C#, classes serve as the foundation for building robust and scalable applications. Two important concepts in class design are sealed classes and abstract classes.
What is the Abstract Class in C#?
Mar 27, 2024.
The abstract class is a special privileged class in the C#, this will provide a blueprint for the derived classes with a setup of rules and instructions to be derived. The abstract class contains both abstract and non-abstract methods.
Abstract Factory Design Pattern In Flutter
Mar 12, 2024.
Learn about the Abstract Factory design pattern in Flutter for creating platform-specific widgets. This pattern centralizes the creation of related objects, making it easier to manage and work with multiple factory methods.
Key Design Patterns in Software Engineering
Feb 08, 2024.
Discover essential design patterns such as Singleton, Factory, Abstract Factory, Unit of Work, Repository, and Command Query Responsibility Segregation (CQRS). Learn their applications and implementations, and see how they synergize to enhance software architecture and development.
Choosing Between Abstract Classes and Interfaces in C#
Dec 02, 2023.
Making the Right Design Choice between Abstract Classes and Interfaces in C#.
Efficient ASP.NET Core Web API Development with Clean Architecture, Flyweight Pattern
Oct 11, 2023.
the implementation of the CarCompany CRUD operations within an ASP.NET Core Web API, following the Clean Architecture principles, has been successfully structured. The separation of concerns into layers such as Web API, Application, Domain, and Infrastructure promotes maintainability and scalability. Leveraging the Flyweight Pattern ensures efficient management and sharing of common data, particularly with the inclusion of the FlyweightProperties within the CarCompany entity.
Building Scalable ASP.NET Core Web API with Onion Architecture and Abstract Factory Design Pattern
Oct 06, 2023.
This implementation serves as a foundation for building robust, modular, and scalable ASP.NET Core Web APIs. As the project evolves, additional features, security measures, and optimizations can be incorporated while adhering to the principles of the chosen architectural style.
Understanding the Flyweight Design Pattern in C#
Sep 20, 2023.
Explore the Flyweight Design Pattern in C#, a memory-efficient structural pattern. Learn to optimize performance by sharing common properties among objects, improving application efficiency.
What is Abstract Class in C#?
Aug 25, 2023.
Abstract classes serve as base classes for derived classes. They can't be instantiated directly and encompass both abstract and non-abstract members. They're useful when default functionality should be split among subclasses. Mark them with the "abstract" keyword.
C# Abstract Classes: Definition, Usage With Example
Aug 07, 2023.
Learn all about C# Intermediate Abstract Classes in this comprehensive guide. Understand the concepts, usage, and benefits. A must-read for C# developers aiming to enhance their skills. Click to become a C# Abstract Classes expert!
Understanding Angular Injection Tokens
Jun 20, 2023.
Angular's dependency injection (DI) system manages dependencies in a modular, scalable manner. Injection Tokens are unique identifiers used by the system to resolve dependencies flexibly. They enable custom configurations, integration of external libraries, and handling of multiple implementations of interfaces or abstract classes.
What is Abstract Keyword in java
Apr 22, 2023.
In this article, you will learn about What is abstract Keyword in Java
The Role of Interfaces in Java
Apr 21, 2023.
Although Java Possesses most of the features of C++, multiple inheritance is not supported by Java.
When To Use Abstract Class In C#.NET
Feb 21, 2023.
In this article, you will learn Realtime scenario when to use abstract class in C#.NET
Static Abstract Interface Members In C# 11 And Curiously Recurring Template Pattern
Dec 23, 2022.
This articles explores the Static Abstract Interface Members in C# 11, along with understanding the Curiously Recurring Template Pattern
C# In Practice - Building Tech Support App
Dec 01, 2022.
In this article, you will learn about simple app building for beginners in C#.
Elegant JavaScript - How Do They Write It?
Aug 08, 2022.
In this article, you will learn about Elegant JavaScript.
Get Started With OOPS In Flutter 😎
Jul 13, 2022.
Here cover some interesting topics like inheritance, abstract classes and computed properties.
Object-Oriented Programming Simplified With C# And .Net 5
Jun 28, 2022.
This article is about the general concepts of Object-Oriented Programming with examples in c sharp programming language.
Implementing Abstraction In Python
Apr 14, 2022.
This article demonstrates Abstraction in Python.
C# Abstract Factory Design Pattern With Code Example
Feb 18, 2022.
In this article, you will learn about C# code to explain Abstract Factory Design Pattern.
What Is The Difference Between Interface And Abstract Class And When To Use It
Sep 14, 2021.
Today, I am going to explain about abstract class and interface, When to use interface and abstract class and what is the difference between them. So, let us start.
Using The Flyweight Pattern In C#
Apr 22, 2021.
In this article, you will learn how to use the flyweight pattern in c#.
Abstract Class Vs Interface in C#
Sep 14, 2020.
n C#, both abstract classes and interfaces are used to define contracts for classes, ensuring that they adhere to a certain structure or behavior. However, they serve different purposes and have distinct characteristics. Below, I'll describe the differences between abstract classes and interfaces in C#.
Abstract Factory Method Design Pattern With .NET Core
Sep 07, 2020.
Explore the use of design patterns in software development to solve common architectural problems. This guide demonstrates the Abstract Factory Design Pattern in C# with .NET Core, focusing on creating vehicle objects for different group sizes. Learn the benefits of using design patterns for increased maintainability and efficiency.
Factory Method Design Pattern With .NET Core
Aug 24, 2020.
In this article, we will explain the Factory Method Design Pattern alongside a practical sample.
Factory Design Pattern With .Net Core
Aug 18, 2020.
In this article will be explained about the Factory Design Pattern alongside with a practical sample
Why Does An Abstract Class Needs A Constructor?
Jun 20, 2020.
In this article, you will learn about why an abstract class needs a constructor.
Purpose Of Abstract Class In Object Oriented Programming
Jun 20, 2020.
We have been using abstract class for a while. Let's understand why it was actually introduced.
The Difference Between Abstract Class and Interface in PHP
Apr 20, 2020.
In this article, you will learn about the difference between abstract class and interface in PHP.
Difference Between Abstract Class And Interface In Java
Dec 10, 2019.
Abstract Class and Interface are a core part of the Java programming language. Abstract class and interface are used in Java to archive Abstraction.
Types Of Classes And Their Characteristics
Dec 07, 2019.
In this article, you will learn about the types of classes and their characteristics.
Kotlin - Class and Object
Sep 05, 2019.
Classes and objects are the center any object oriented programming language. this article, you will learn all about classes and objects in Kotlin. You will also learn various types of classes and class members in Kotlin.
Abstracting Azure Service Bus And Azure Queues To Send Messages
Aug 13, 2019.
Abstracting Azure Service Bus and Azure Queues simplify message sending by providing high-level interfaces. This allows seamless integration with Azure's messaging infrastructure, enabling efficient communication, asynchronous processing, and scalability in cloud-based applications.
Abstract Class And Interface - Two Pillars In Object Oriented Programming
Mar 04, 2019.
Abstract classes are those classes which can't be initiated, that is, they are considered as incomplete classes. Let's learn the concepts of Abstract Classes and Interface in OOP.
Overview Of Abstract Class And Interface
Nov 21, 2018.
In this article, I will explain you abstract class and interface. Which is the most important topic to cover? Most of the interviewer ask about abstract class and interface. I will cover all possible interview questions which I have faced during my interviews. I thought why not create an article on this topic and help people who really want to know. Let’s start.
Learn About Data Structures And Algorithms (DSA)
Nov 13, 2018.
This article will tell you almost everything about the crucial concepts of data structures and algorithms. This article is the first one in the series of “Data Structure and Algorithm (DSA)”. You’ll learn more about data structures and algorithms in details in my coming articles. So stay tuned for next articles.
How To Switch From Factory Method Pattern To Abstract Factory Pattern
Oct 30, 2018.
This article will also compare and the difference between Abstract Factory and Factory method pattern. I am using the same case study example so that difference can be identified between these two design patterns.
Angular Reactive Forms - Part Eight
Sep 12, 2018.
In the last article, we’ve learned about Template driven forms. And here we’ll look into the different approach to create forms and that is Reactive forms. And this approach gives us more control over the structure and the behavior of our form.
Abstract Factory Pattern Using C# - Real World Example
Jan 22, 2018.
While learning design patterns, I came to understand the most frequently used term, Factory Pattern as well as Abstract factory pattern. I searched the internet and came across numerous learning points. After a lot of search and study, I endeavored to find an actual need for the abstract design pattern.
When To Use Abstract Class and Interface In Real Projects
Sep 03, 2016.
In this article, you will learn when to use an abstract class and an interface in real projects.
Why Do We Use Abstract Class?
Jul 11, 2016.
In this article, you will learn why we use abstract class.
When to Use Interface And When To Use Abstract Class - Part Three
Jun 22, 2016.
In this article you will learn when to use interface and when to use abstract class.
When to Use Interface And When To Use Abstract Class - Part Two
Jun 17, 2016.
In this article you will learn when to use Interface and when to use Abstract Class.
Abstract Factory Pattern In C#
Jun 08, 2016.
In this article you will learn about Abstract Factory Pattern In C# language.
When to Use Interface And When To Use Abstract Class - Part One
Jun 02, 2016.
I hope this article helps you to explore all the possibilities of Abstract Class. My idea is to give readers an understanding of where to user Interface and Abstract class.
Design Patterns In WinJS #2: Abstract Factory
May 20, 2016.
This article covers the implementation of Abstract Factory Design Pattern. This is part two of the article series.
Preparing for .NET Interviews - Part Seven (Abstract Class & Interface)
Apr 29, 2016.
This article presents the common questions asked in .NET interviews related to Abstract Class & Interface and explains the answers in an easy way.
Learn Tiny Bit Of C# In 7 Days - Day 3
Dec 29, 2015.
This article intended to focus towards the beginners so that they can easily grasp the C# Language concepts.
Class Vs Abstract Class Vs Interfaces
Dec 16, 2015.
In this article you will learn about the differences between Class, Abstract Class and Interfaces in C# language.
Abstract Classes In C#
Dec 08, 2015.
In this article you will learn about abstract classes in C#.
Design Patterns Simplified - Part 4 (Abstract Factory)
Dec 04, 2015.
This article explains what Abstract Factory Design Pattern is and how to use it in software development.
Abstract Class vs Interfaces In Object Oriented EcoSystem
Dec 03, 2015.
In this blog you will learn about the difference between Abstract class and Interface.
Factory Design Pattern
Nov 22, 2015.
In this article you will learn about Factory Design Pattern. This is the most commonly used design pattern.
Types Of Polymorphism
Oct 05, 2015.
In this article you will learn about Polymorphism and types of polymorphism.Polymorphism is one of the fundamental principles in object-oriented programming (OOP). It allows objects of different classes to be treated as objects of a common superclass. There are two types of polymorphism: compile-time (or static) polymorphism and runtime (or dynamic) polymorphism.