Pages

Topics

Tools

↑↓navigate↵openescclose

All syntax guides

Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.

3,965 guides across 14 topics

Topics

Latest guides

Diagram showing a C# class node connected to multiple interface contracts, with a collision point resolved by an explicit implementation branch.
C#

C# Multiple Interface Implementation: Syntax and Collisions

Learn how to implement multiple interfaces in C#, resolve member collisions with explicit interface implementations, and choose maintainable interface designs.

C#Interfaces.NETExplicit Interface Implementation
Illustration of a C# interface implementation showing a class connecting to an interface contract with method signatures.
C#

C# Interface Implementation: Syntax and Patterns

Learn how to implement interfaces in C# with practical examples: implicit vs explicit implementations, default methods, interface inheritance, and dependency injection.

C# interfacesexplicit implementationdefault interface methodsdependency injection
An abstract illustration of a C# interface declaration showing a contract between types, with a blueprint-like design.
C#

C# Interface Declaration: Syntax and Usage

Learn the syntax and rules for declaring C# interfaces, including members, access modifiers, and implementation patterns.

C# interfacesinterface syntaxinterface implementationtype contracts
Illustration of C# interface contracts connecting different class implementations
C#

C# Interface Usage: Contracts, Polymorphism, and DI

Learn how C# interfaces define contracts, support polymorphism, and make dependency injection cleaner, with code examples and common pitfalls.

C# InterfacesPolymorphismDependency InjectionSOLID Principles
Diagram showing an abstract base class with derived classes inheriting and overriding abstract members in C#
C#

C# Abstract Class Inheritance Explained

c# abstract class inheritance: Learn how C# abstract class inheritance works: abstract members, constructor flow, sealed overrides, and when an abstract class beats an...

abstract classinheritanceC# OOPinterfaces
Diagram showing an abstract class constructor being invoked from a derived class constructor during object initialization.
C#

C# Abstract Class Constructor: How It Works

Learn how C# abstract class constructors work: how derived classes invoke them, pass parameters, choose access modifiers, and avoid common mistakes.

C#Abstract ClassesConstructorsInheritance
Diagram contrasting abstract class with sealed class in C# showing inheritance and override behavior
C#

C# Abstract vs Sealed: Choosing the Right Inheritance Modifier

Understand when to use abstract and sealed modifiers in C#, how they affect inheritance and overriding, and what each choice means for maintainability.

abstract classsealed classinheritanceC# modifiers
Diagram contrasting abstract and virtual method declarations in a C# base class hierarchy
C#

C# Abstract vs Virtual: Key Differences

Compare abstract and virtual methods in C#: syntax, override requirements, base calls, and when to use each for maintainable class design.

abstract methodsvirtual methodsmethod overridingpolymorphism
Diagram showing an abstract class with an abstract property declaration and derived classes with overridden implementations
C#

C# Abstract Property: Declaration and Override

Learn to declare and override abstract properties in C#: syntax, accessor override rules, abstract property vs interface property, and design tradeoffs.

abstract propertyC# OOPinheritanceoverride
Diagram showing an abstract method declaration in an abstract class being overridden by a derived class in C#.
C#

C# Abstract Method: Syntax, Overriding, and Design Tradeoffs

Learn how to declare and override C# abstract methods, how they differ from virtual methods and interfaces, and when to use them.

abstract classesmethod overridingvirtual methodsinterfaces