Learn a difference between structs and classes in C#

Опубликовано: 17 Февраль 2026
на канале: Developer Thing
545
14

In this YouTube video, I explain the differences between structs and classes in C#. Structs are value types on the stack, while classes are reference types on the heap. Using a simple "Dimension" struct, I show how structs don't support inheritance, explore constructors, and clarify that structs can't be set to null.