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


Please Help Members By Posting Answers For Below Questions

Are cookies stored on server or client?

500


How tooltip is set through code-behind in ASP.NET?

575


What is AutoPostback?

594


How many types of cache are there?

528


Define page output caching?

572






Does asp.net still recognize the global.asa file?

552


Where is http session stored?

499


Why do I get error message "could not load type" whenever I browse to my asp.net web site?

629


Why do we need url encoding?

522


How can you ensure a permanent cookie?

549


How is application management and maintenance improved in asp.net 2.0?

536


What are the 3 types of web?

504


What is _viewstart?

501


What do you mean by query string?

518


How to find out what version of asp.net I am using on my machine?

579