Constant fields in C Sharp | Lecture 9 | Learn C Sharp Programming

Опубликовано: 12 Октябрь 2024
на канале: #SmartCode
22
0

@smartcode9021 #csharp
C Sharp tutorial for beginners

⭐️Lecture: 9 ⭐️
In this lecture you will learn to create constant fields using the keyword const.

Constants are immutable values which are known at compile time and do not change for the life of the program. Constants are declared with the const modifier. Only the C# built-in types (excluding System.Object) may be declared as const. User-defined types, including classes, structs, and arrays, cannot be const.


⭐️Timestamp of content covered⭐️
⌨️ (00:00) Constant fields


✏️ Your instructor is Salar Asker Zada.
🎥 Course Playlist:    • C Sharp programming course