Which access modifier allows a member to be accessed only within the same assembly?
In C# 10, what does the 'file' access modifier allow?
What will be the behavior if a base class method is not marked as 'virtual' and a derived class attempts to override it?
Which statement about record types in C# 9+ is correct?
What is the output of using 'nameof()' operator on a property in C#?
Advertisement
In C#, what is the correct way to implement explicit interface implementation?
Which feature in C# 8+ allows you to provide default implementation in an interface?
What happens when you mark a class with the 'sealed' modifier?
In C#, what is the relationship between composition and inheritance in OOP design?
What does the 'base' keyword do in a derived class method in C#?
Which of the following demonstrates proper encapsulation in C#?
In C# 12, what feature allows creating parameterless struct constructors with field initializers?
What is the correct way to implement the Dispose pattern in C# for resource cleanup?
What is the output behavior of ToString() method when not overridden in a custom class?
In C# 11, which feature enables you to define constraints on generic type parameters at compile-time?
In C#, which access modifier allows a member to be accessed only within the same class?
What is the primary purpose of using interfaces in C#?
In C# inheritance, which keyword allows accessing members of the parent class?
What does the 'virtual' keyword enable in C#?
Consider a BankAccount class with private balance field. How should external classes access this field safely?