Interview Questions – C#

C# Interview Questions #2

Collected from the Internet: 1.Does C# support multiple-inheritance? Ans. No! It may be achieved however, using interfaces. 2.Who is a protected class-level variable available to? Ans.It is available to any sub-class (a class inheriting this class). 3.Are private class-level variables inherited? Ans. Yes, but they are not accessible.  Although they are not visible or accessible [...]

C# Interview Questions #1

Collected from the Internet: What does the modifier protected internal in C# mean? The Protected Internal can be accessed by Members of the Assembly or the inheriting class, and of course, within the class itself. In VB.NET, the equivalent of protected internal is protected friend. The access of this modifier is limited to the current [...]