what are partial classes and their use?
Answer Posted / vikas kant
Partial Class is the class whose definition is present in
two or more files.All these files combined with each other
at the compile time.
e.g :---
public partial class Employee
{
public void DoWork()
{
}
}
public partial class Employee
{
public void GoToLunch()
{
}
}
so while using the partial classes coders can work in
different files and at compile time all the code can be
combined.it saves the time and also provides the better
security bcoz code is present in more than one file.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you do client-side validation in .net? How to disable validator control by client side javascript?
What are the different types of validation controls in asp.net?
Difference between application events and session events
Explain file-based dependency and key-based dependency.
What are session state modes in asp.net?
Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net
What are the differnt types of handler in ASP.NET?
List down the sequence of methods called during the page load.
Why is string called immutable data type?
Why do I get error message "could not load type" whenever I browse to my asp.net web site?
What is asp.net caching?
What are the different web pages?
What is the difference between CC and BCC?
What is view state management in asp net?
What is session start?