ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
Explain current thinking around IClonable.
 Question Submitted By :: .NetGuru
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Explain current thinking around IClonable.
Answer
# 1
*-->ICloneable is  to create the copy of type instances.

*-->To create a true copy of a reference type,
you must clone the object to which it refers.

*-->The ICloneable interface identifies a type as cloneable 
and declares the Clone method as the
mechanism through which you obtain a clone of an object. 
*-->The Clone method takes no arguments
and returns a System.Object, regardless of the implementing 
type. This means that once you clone
an object, you must explicitly cast the clone to the 
correct type.


*-->If your custom type contains reference-type data 
members, you must decide whether your Clone method will 
perform a shallow copy or a deep copy.
*--> A shallow copy means that any referencetype
data members in the clone will refer to the same objects as 
the equivalent reference-type data
members in the original object.
*--> A deep copy means that you must create clones of the 
entire object graph so that the reference-type data members 
of the clone refer to physically independent copies
(clones) of the objects referenced by the original object.

Note:Mostly Shallow Copy is being Preferred.Because A 
shallow copy is easy to implement by calling the 
MemberwiseClone method from within your
Clone method.
System.Xml.XmlNode implements
a deep copy in its Clone method
 
Is This Answer Correct ?    1 Yes 0 No
Madhunathanv
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
we can able to display a MessageBox in asp .net without using any script langages? ABC5
What is the Difference between Web.config and global.asax? Can we write connection String code in global.asax? Microsystems4
what are the main advantage in .net? TCS3
What is the difference between session state and session variables ? Digital-GlobalSoft4
can i inherit one web applications into another web applications in asp.net?  6
How To Call Outside Javascript File? Example : Our Project File Folder Name "Sample" Another Folder Name "Check".Check Folder Is Out Side Of Our Project ?Check Folder Have Verify.Js File. My Question Is How To Call Verify.Js File. Phoenix-Technologies2
What is the namespace used to store the information about the user?s locale?  1
What is the T-SQL equivalent of IIF (immediate if/ternary operator) function of other programming languages? Syntax-Softtech1
Difference between ASP Session and ASP.NET Session?  1
Difference between DataView and DataTable  3
How many rules are there regarding a well formed XML document? a) Nine b) Three c) Six d) Two Syntax-Softtech1
what is soap? Microsoft3
Hi please tell me what is ISNOTPOSTBACK,POSTBACK,AUTOPOSTBACK and also the extensions of aspx,asmx,ascx its urgent plz reply me soon....  3
what r the Templeats in ASP.net? Intel5
What was the difference between machine.config and web.config files Assurgent8
Caching techniques in .NET? Microsoft2
What is the difference between an EXE and a DLL?  6
Is it possible to use two versions of assembly at the same time?If possible explain with code? Tech-Mahindra3
can i use two web.config files of ConnectionString in One Default.aspx page Verinon-Technology-Solutions5
what is code access security,role based security explain with example Infosys1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com