Ryan McBeth
Ryan McBeth
@RyanMcBethProgramming·1.1M subscribers·2K videos

What Are Static Classes and Static Methods in C#? - C# Gotcha! Interview Questions

Posted

March 8, 2021

Views

4,669

Likes

274

Comments

24

Engagement

6.38%

Search the Record

Indexed

Every word spoken in this episode is indexed. Type any phrase to jump straight to the moment it was said.

Type any word or phrase that may have been spoken. Click a result to seek the player to that exact moment.

Try a name, a topic, or a quoted line

YouTube Description

as posted by the channel

Static classes and static methods in C# are kind of strange. They can't be instantiated. They can't be inherited. They can't access anything that isn't static. They don't seem to do much, so what are they useful for?

Well, they're great if you don't want to burn processer cycle instantiating an object just to use a specific method.

The code for this is available at:

www.ryanmcbeth.com

Links & Promotions

Guests & Subjects Covered

C# Gotcha! Interview Questions

Sentinel Indexing in Progress

Metadata and chapters are available. Claim extraction for this episode is pending.

All video content is delivered via YouTube embedded players in accordance with the YouTube Terms of Service. Sentinel provides research tools that promote discovery and accountability across political media.

What Are Static Classes and Static Methods in C#? - C# Gotcha! Interview Questions · Ryan McBeth · Sentinel