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
Explain the difference between web user control and web custom control?
What are the various session state management options provided by asp.net?
What is custom attribute? How to create?
Explain what are webservices?
What describes a query?
What do you mean by query string?
What is http post and http get?
List the asp.net validation controls?
What is redirectpermanent in asp.net?
What are the different types of validation controls provided in ASP.NET?
What is difference between session and cookies in asp net?
What is aspect-oriented programming?
What is meant by asp.net?
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?
How can you send an email message from an asp.net web page?