🎴 Flashcard Mode

C# and .NET Fundamentals

Card1 / 15
Mastered0
Review0
QuestionClick to flip

A local variable

AnswerClick to flip back
A
Is declared within a method
💡 Explanation:

A local variable is declared within a method, constructor, or block and is only accessible within that scope. It cannot be used anywhere in the program (that would be a global variable), it doesn't 'accept a class,' and it doesn't necessarily represent a class object (it could be a primitive type like int or an object reference).

Change Mode