GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  Ado.NET
Go To First  |  Previous Question  |  Next Question 
 Ado.NET  |  Question 18 of 31    Print  
What is Partial class

  
Total Answers and Comments: 8 Last Update: May 22, 2009     Asked by: hksjadon 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: bb.geetha
 
A Partial class is a class that can be split into two or more classes. This means that a class can be physically separated into other parts of the class within the same namespace. All the parts must use the partial keyword. All the other classes should also have the same access modifier. At the compile time, all the partial classes will be treated as a single class. Let us list some advantages of having partial classes.

Above answer was rated as good by the following members:
surendra_sahu786, thitnaing
September 28, 2006 13:03:49   #1  
PAM        

RE: What is Partial class

Refer the article below that gives a good idea about Partial classes/

http://www.code-magazine.com/article.aspx?quickid 0503021&page 2


 
Is this answer useful? Yes | No
September 28, 2006 22:31:06   #2  
Sohaib Ahmad        

RE: What is Partial class
The class which can be split into mulitple files in partial class.
 
Is this answer useful? Yes | No
November 19, 2006 23:20:39   #3  
sriraja        

RE: What is Partial class
A class having splited into different files ex.. program.cs(application.run) form related files class related files
 
Is this answer useful? Yes | No
July 13, 2007 00:41:31   #4  
don22222000 Member Since: July 2007   Contribution: 1    

RE: What is Partial class
In ASP.Net Partial Class is the common class that links the Presentation layer to the Code behind page. Its basically an inheritance class.
 
Is this answer useful? Yes | No
September 22, 2007 09:55:16   #5  
bornToLose        

RE: What is Partial class

It is possible to split class struct and interface into multiple source file. Each file contain section of class definition and combined all file at time of compilation. It is used when:

1. Program is very large

2. Automatic generate source code


 
Is this answer useful? Yes | No
April 17, 2008 03:58:25   #6  
ushalakshmi Member Since: April 2008   Contribution: 40    

RE: What is Partial class
Partial Class helps to split our classes into multiple physical files.Benifits:Isolate Business logic of an applicatoin from a user interface.Facilitates easier debugging.
 
Is this answer useful? Yes | No
June 12, 2008 07:46:11   #7  
bb.geetha Member Since: May 2008   Contribution: 8    

RE: What is Partial class
A Partial class is a class that can be split into two or more classes. This means that a class can be physically separated into other parts of the class within the same namespace. All the parts must use the partial keyword. All the other classes should also have the same access modifier. At the compile time all the partial classes will be treated as a single class. Let us list some advantages of having partial classes.
 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    
May 22, 2009 05:34:58   #8  
hellodebasish Member Since: May 2009   Contribution: 2    

RE: What is Partial class
The class having partial keyword and same name. One class can split into more than two parts having same name and partial keyword. In the time of object creation all partial class group together to make the single object.

The main aim for the partial class is that giving more liberty to the developer different developer can work on same class without interpreting to each other.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape