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
What are the uses of reflection?
What are the layouts of ASP.NET Pages?
What does clearing cache?
What is server side in asp.net?
How do you secure your configuration files to be accessed remotely by unauthorized users?
What is the difference between application state and caching?
What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?
What is Dynamic Web and discuss its usage with the help of real life examples?
What are the different types of validation controls in asp.net?
Is asp.net a language?
Can a .net web application consume java web service?
What is difference between Fragment Caching and Page Caching in ASP.NET?
How to you can limit Access to Web API to Specific HTTP Verb?
How can we identify that the page is post back in asp net?
What is HTTPModule and HTTPcontext? What is the use of each?