Access modifiers in C# control how code is accessed in an application. These can either be private, public, protected, internal, or protected internal.
This C# beginner tutorial covers how to use access modifiers, the types of access modifiers that exist, encapsulation, and more, perfect for anyone learning how to program in C#.
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
Subscribe to the channel ✔️
/ @heightabovesealevel
CUSTOM SAKURA THEME for Visual Studio: / heightabovesealevel
Click the 🔔 to turn on notifications so you don't miss anything.
Come hang out on DISCORD!
Discord: / discord
Other awesome videos worth checking out:
Classes - C# Beginner Tutorial
• Classes in C# and How ...
Do You Need Math to Be A Good Programmer
• Do You Need Math to Be...
Conditional Statements - C# Beginner Tutorial
• Conditional (If/Else/S...
A tip is always appreciated :)
streamelements.com/heightabov...
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
Access modifiers also play a part when it comes to encapsulation - a term I discuss in the video.
The four most common ones are the public access modifier, the private access modifier, the protected access modifier, and the internal access modifier.
Here's the article covering "protected internal" and "private protected" access modifiers.
docs.microsoft.com/en-us/dotn...
Timestamps:
0:00 - Intro
0:46 - Types of Access Modifiers in C#
1:33 - Public Access Modifier
2:25 - Namespaces in Older Versions of Console Applications
3:13 - Testing Public Access Modifier
5:13 - Private Access Modifier
5:44 - How to Get My Custom Sakura Theme
6:13 - Testing Private Access Modifier
8:41 - Encapsulation
9:41 - Introduction to Fields in C#
11:35 - Protected Access Modifier
12:00 - Inheritance
15:50 - Testing Protected Access Modifier
18:37 - Using Access Modifiers with Getters and Setters
19:04 - Default Acess Modifier When None Specified
20:27 - Internal Access Modifier
23: 29 - Outro
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
Here's my other social media; amazing stuff over there too!
🎮 TWITCH ➼ / avatarvick
📷 INSTAGRAM ➼ / heightabovesealevel
😂 TWITTER ➼ / vicktor_oti (VICKTA)
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
🎵 Music provided by:
Argofox:
VIRO - Believe
• VIRO - Believe [Argofo...
StreamBeats by Harris Heller
www.streambeats.com/
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
#programming #accessmodifiers #learningtocode
Thank you for watching.
Subscribe, and I'll see you in the next video.
25 июн 2024