• +91 9723535972
  • info@interviewmaterial.com

CSharp Interview Questions and Answers

Question - What are partial classes in C#?

Answer -

Partial classes implement the functionality of a single class into multiple files. These multiple files are combined into one during compile time. The partial class can be created using the partial keyword. 

public partial Clas_name  
{
       // code
}
You can easily split the functionalities of methods, interfaces, or structures into multiple files. You can even add nested partial classes. 

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners