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
When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?
Explain the difference between page.registerclientscriptblock and page.registerstartupscript?
Write a code for passing ArrayList in Web API?
What is query string with example?
What are the advantages of asp.net?
What is server components?
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
What is postback request?
Explain repository pattern in asp.net mvc? : asp.net mvc
What is the use of placeholder control?
Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc
What is hidden field in asp.net?
Is asp net front end or backend?
What are client activated objects?
What are server activated objects?