|
By Nishant
Kumar
C#.Net Interview Questions and their answer
part 3.
Question - How to
prevent your class from being inherited?
Answer - You can use keyword 'sealed' in the class definition to
prevent class from being inherited.
Question - List down difference between overriding and overloading.
Answer - When
overriding, you change the method behavior for a derived class.
Overloading simply involves
having a method with the same name within the class.
Question
- What does the keyword virtual mean in the method definition?
Answer
- The method can be over-ridden.
Question
- How to allow class to be inherited, but prevent the method from
being over-ridden?
Answer
- You can do so by declaring the class public and making the
method sealed.
Question
- When do we declare a class as abstract in C#.NET?
Answer
- When at least one of the methods in the class is abstract.
Question
- Define Interface class in C#.NET.
Answer
- It
is an abstract class with public abstract methods with no
implimentation.
Part 1 | Part 2 | Part 3 | Part 4 | part
5
Define Caching in ASP.NET | Advantages of
Caching | What are the types of Caching in ASP.NET? | Explain in
brief each kind of caching in ASP.NET.
What is Globalization and Localization in
ASP.NET? | What are the Globalization approaches possible in
ASP.NET? | Implementing ASP.NET Globalization | Define Resource
Files and Satellite Assemblies
Define Session, SessionId
and Session State in ASP.NET. | What is Session Identifier? |
Advantages and disadvantages of using Session State Management. |
What are the Session State Modes? | Define each Session State mode
supported by ASP.NET.
|