.Net Interview Questions & Answers – Best TOP 10 (Day – 3)

.Net framework is one of the most widely used application development, and therefore .net framework skills are important in most work roles. .Net Interview Questions & Answers article, I will share with you some of the most frequently asked questions on .Net framework such as C#, ADO .NET, ASP.NET and ASP.Net MVC. This article is the perfect guide for you to learn all concepts related to .Net Framework.

What are the Access Modifiers in C# ?

Access modifiers are keywords used to specify the declared accessibility of a member or a type. Types of Access Modifier:- Public Private Protected Internal Protected Internal

.Net Interview Questions & Answers – Best TOP 10 (Day – 1)

What is Public Access Modifier ?

There are no restrictions on accessing public members.

What is Private Access Modifier ?

Access is limited to within the class definition. This is the default access modifier type if none is formally specified

What is Protected Access Modifier ?

Access is limited to within the class definition and any class that inherits from the class

.Net Interview Questions & Answers – Best TOP 10 (Day – 2)

What is Internal Access Modifier ?

Access is limited exclusively to classes defined within the current project assembly

What is Protected Internal Access Modifier ?

Access is limited to the current assembly and types derived from the containing class. All members in current project and all members in derived class can access the variables.

What is Static keyword in C# ?

In C#, data members, member functions, properties and events can be declared either as static or non-static. When we declare a member with the help of the keyword static, it becomes a static member. Only one copy of static fields and events exists, and static methods and properties can only access static fields and static events. You can’t use this keyword with static, as it will not initialize. Static members are shared level and are not initiated.

What is the use of Virtual Keyword in C# ?

When we want to give permission to a derived class to override a method in base class, Virtual keyword is used.

.Net Interview Questions & Answers – Best TOP 10 (Day – 1)

What is a class ?

Class is a template, declaration or blueprint that is used for the object. A Class describes all the attributes of the object, as well as the methods that implement the behavior of the member object. It is the basic building block of object-oriented programming.

What is an Object?

An object is an instance of a class. When an object is instantiated, it is allocated with a block of memory and configured as per the blueprint provided by the class underlying the object. Objects of value type are stored in the stack, while those of reference type are allocated in the heap.

C# in Microsoft

Leave a Comment

Your email address will not be published. Required fields are marked *