<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Interview &#187; CSharp</title>
	<atom:link href="http://interview.msdotnetheaven.com/topics/microsoft-net-interview-questions/csharp-interview-questions/feed" rel="self" type="application/rss+xml" />
	<link>http://interview.msdotnetheaven.com</link>
	<description>Best place for interview preparation</description>
	<lastBuildDate>Sat, 21 May 2011 21:43:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Define interface in own words.</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/define-interface-in-own-words.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/define-interface-in-own-words.html#comments</comments>
		<pubDate>Sat, 21 May 2011 21:43:04 +0000</pubDate>
		<dc:creator>meghna</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[Microsoft .Net]]></category>

		<guid isPermaLink="false">http://interview.msdotnetheaven.com/?p=674</guid>
		<description><![CDATA[We have many books around, anyone can get a definition of interface which is nothing but bookish. In these days we are more interested to know what you know about interfaces rather than what you read for interfaces?
Here, I tried to cover interfaces in my own words:
Interface
An interface is simply a collection of function prototypes. An Interface is a reference type like a class, but interface can contain only abstract members. In other words, Interface is a contract that defines the signature of the functionality.
An interface looks like a class ...


Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/what-are-classes-and-structures.html' rel='bookmark' title='Permanent Link: What are Classes and structures'>What are Classes and structures</a></li>
<li><a href='http://interview.msdotnetheaven.com/oops-questions-and-answers/what-is-differance-between-abstract-and-interface.html' rel='bookmark' title='Permanent Link: What is differance between Abstract and Interface'>What is differance between Abstract and Interface</a></li>
<li><a href='http://interview.msdotnetheaven.com/uml-interview-questions-and-answers/what-are-the-good-practices-to-use-while-designing-for-reuse.html' rel='bookmark' title='Permanent Link: What are the good practices to use while designing for reuse'>What are the good practices to use while designing for reuse</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>We have many books around, anyone can get a definition of interface which is nothing but bookish. In these days we are more interested to know what you know about interfaces rather than what you read for interfaces?</p>
<p>Here, I tried to cover interfaces in my own words:</p>
<h3>Interface</h3>
<p>An interface is simply a collection of function prototypes. An Interface is a reference type like a class, but interface can contain only abstract members. In other words, Interface is a contract that defines the signature of the functionality.</p>
<p>An interface looks like a class definitions, but its only purpose is to define a set of methods and not to implement them. For this reason the interface definition includes only the definition of methods [in other words the abstract methods]. Interface contains only methods, properties and delegates but can not contain fields, constructors, destructor and any type of static members.</p>
<p>For more details and example refer to : <a href="http://gauravarora.indiamentor.com/Chapters/csharplanguageii.htm">http://gauravarora.indiamentor.com/Chapters/csharplanguageii.htm</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Define+interface+in+own+words.+http%3A%2F%2Ftinyurl.com%2F3kmbfgv" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Define+interface+in+own+words.+http%3A%2F%2Ftinyurl.com%2F3kmbfgv" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=674&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/what-are-classes-and-structures.html' rel='bookmark' title='Permanent Link: What are Classes and structures'>What are Classes and structures</a></li>
<li><a href='http://interview.msdotnetheaven.com/oops-questions-and-answers/what-is-differance-between-abstract-and-interface.html' rel='bookmark' title='Permanent Link: What is differance between Abstract and Interface'>What is differance between Abstract and Interface</a></li>
<li><a href='http://interview.msdotnetheaven.com/uml-interview-questions-and-answers/what-are-the-good-practices-to-use-while-designing-for-reuse.html' rel='bookmark' title='Permanent Link: What are the good practices to use while designing for reuse'>What are the good practices to use while designing for reuse</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/define-interface-in-own-words.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are Classes and structures</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/what-are-classes-and-structures.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/what-are-classes-and-structures.html#comments</comments>
		<pubDate>Wed, 18 May 2011 05:49:57 +0000</pubDate>
		<dc:creator>gaurav.arora</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[Microsoft .Net]]></category>

		<guid isPermaLink="false">http://interview.msdotnetheaven.com/?p=671</guid>
		<description><![CDATA[A very basic and common questions asked many time to freshers, novoice or intermediate level interviews. I got many emails for the same questions, hereunder I try to answer in a simpler way.
Structures
A structure in C# is simply a composite data type [you are well aware from composite data type, refer to data types for more details], which consists number of members of other types. The structure define simply by using the struct keyword.
eg. struct enroll
{
   public string name, fname, mname;
   public string char sex;
   Public int age;
   public string address;
}
Classes
It is cleared from ...


Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-i-inherit-two-difference-classes-to-partial-classes.html' rel='bookmark' title='Permanent Link: Can I inherit two difference classes to partial classes?'>Can I inherit two difference classes to partial classes?</a></li>
<li><a href='http://interview.msdotnetheaven.com/general-interview-stuffs/is-it-possible-to-create-constructor-for-an-abstract-class.html' rel='bookmark' title='Permanent Link: Is it possible to create constructor for an Abstract class?'>Is it possible to create constructor for an Abstract class?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/how-can-i-create-a-singleton-class-by-using-public-constructor.html' rel='bookmark' title='Permanent Link: How can I create a Singleton class by using public constructor?'>How can I create a Singleton class by using public constructor?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A very basic and common questions asked many time to freshers, novoice or intermediate level interviews. I got many emails for the same questions, hereunder I try to answer in a simpler way.</p>
<h3>Structures</h3>
<p>A structure in C# is simply a composite data type [you are well aware from composite data type, refer to data types for more details], which consists number of members of other types. The structure define simply by using the struct keyword.</p>
<p>eg. struct enroll<br />
{<br />
   public string name, fname, mname;<br />
   public string char sex;<br />
   Public int age;<br />
   public string address;<br />
}</p>
<h3>Classes</h3>
<p>It is cleared from above study that Classes are reference type. A class is a collection of its data members. Data members are those members of class which contains the data of class like fields, constants and events etc. Class is declared simply just followed by class keyword with optional modifiers; by default C# classes are public.</p>
<p>eg. class myClass<br />
{<br />
   public int xyz;<br />
   public string name;<br />
   public const int y=22;<br />
}</p>
<p>Look into more details at : <a href="http://gauravarora.indiamentor.com/Chapters/csharplanguageii.htm">http://gauravarora.indiamentor.com/Chapters/csharplanguageii.htm</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=What+are+Classes+and+structures+http%3A%2F%2Ftinyurl.com%2F6xzk9sl" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=What+are+Classes+and+structures+http%3A%2F%2Ftinyurl.com%2F6xzk9sl" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=671&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-i-inherit-two-difference-classes-to-partial-classes.html' rel='bookmark' title='Permanent Link: Can I inherit two difference classes to partial classes?'>Can I inherit two difference classes to partial classes?</a></li>
<li><a href='http://interview.msdotnetheaven.com/general-interview-stuffs/is-it-possible-to-create-constructor-for-an-abstract-class.html' rel='bookmark' title='Permanent Link: Is it possible to create constructor for an Abstract class?'>Is it possible to create constructor for an Abstract class?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/how-can-i-create-a-singleton-class-by-using-public-constructor.html' rel='bookmark' title='Permanent Link: How can I create a Singleton class by using public constructor?'>How can I create a Singleton class by using public constructor?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/what-are-classes-and-structures.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can I inherit two difference classes to partial classes?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-i-inherit-two-difference-classes-to-partial-classes.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-i-inherit-two-difference-classes-to-partial-classes.html#comments</comments>
		<pubDate>Mon, 25 Jan 2010 14:50:50 +0000</pubDate>
		<dc:creator>smartbrain</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Company asked interview questions]]></category>
		<category><![CDATA[CSharp]]></category>
		<category><![CDATA[RSystems]]></category>
		<category><![CDATA[interview questions and answers]]></category>
		<category><![CDATA[partial class]]></category>

		<guid isPermaLink="false">http://interview.msdotnetheaven.com/?p=648</guid>
		<description><![CDATA[Q. Can I inherit two difference classes to partial classes? Following is the whole scenario of this question:
I have two classes XYZ and ABC and two partial classes  of class myClass now is it possible:
partial class myClass : XYZ
{
}
partial class myClass : ABC
{
}
Ans:  This question I have asked in RSystems, Noida and I am sharing hereunder with you :
We can&#8217;t inherit two difference classes to partial class because in C# multiple inheritance is not possible using classes.
The main reason is in C# we cant do the following:
class myClass : XYZ, ...


Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/what-are-classes-and-structures.html' rel='bookmark' title='Permanent Link: What are Classes and structures'>What are Classes and structures</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/when-you-inherit-a-protected-class-level-variablewho-is-it-available-to.html' rel='bookmark' title='Permanent Link: When you inherit a protected-class-level variable,who is it available to?'>When you inherit a protected-class-level variable,who is it available to?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-store-filtered-dataview-in-viewstate.html' rel='bookmark' title='Permanent Link: Can we store filtered DataView in ViewState?'>Can we store filtered DataView in ViewState?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Q. Can I inherit two difference classes to partial classes? Following is the whole scenario of this question:</p>
<p>I have two classes XYZ and ABC and two partial classes  of class myClass now is it possible:</p>
<blockquote><p>partial class myClass : XYZ</p>
<p>{</p>
<p>}</p>
<p>partial class myClass : ABC</p>
<p>{</p>
<p>}</p></blockquote>
<p><strong><span style="text-decoration: underline;">Ans</span></strong>:  This question I have asked in RSystems, Noida and I am sharing hereunder with you :</p>
<p>We can&#8217;t inherit two difference classes to partial class because in C# multiple inheritance is not possible using classes.</p>
<p>The main reason is in C# we cant do the following:</p>
<blockquote><p>class myClass : XYZ, ABC</p>
<p>{</p>
<p>}</p></blockquote>
<p>It will throw an error while we compile the code.</p>
<address><em>Note: if anyone has better views for this question please share.</em></address>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Can+I+inherit+two+difference+classes+to+partial+classes%3F+http%3A%2F%2Ftinyurl.com%2F5t4bx47" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Can+I+inherit+two+difference+classes+to+partial+classes%3F+http%3A%2F%2Ftinyurl.com%2F5t4bx47" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=648&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/what-are-classes-and-structures.html' rel='bookmark' title='Permanent Link: What are Classes and structures'>What are Classes and structures</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/when-you-inherit-a-protected-class-level-variablewho-is-it-available-to.html' rel='bookmark' title='Permanent Link: When you inherit a protected-class-level variable,who is it available to?'>When you inherit a protected-class-level variable,who is it available to?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-store-filtered-dataview-in-viewstate.html' rel='bookmark' title='Permanent Link: Can we store filtered DataView in ViewState?'>Can we store filtered DataView in ViewState?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-i-inherit-two-difference-classes-to-partial-classes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How can I create a Singleton class by using public constructor?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/how-can-i-create-a-singleton-class-by-using-public-constructor.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/how-can-i-create-a-singleton-class-by-using-public-constructor.html#comments</comments>
		<pubDate>Mon, 11 Jan 2010 15:39:23 +0000</pubDate>
		<dc:creator>meghna</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[Microsoft .Net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[Interview question]]></category>
		<category><![CDATA[singleton]]></category>

		<guid isPermaLink="false">http://interview.msdotnetheaven.com/?p=633</guid>
		<description><![CDATA[I have also asked a tricky question like this:
Can we create a singleton class using public constructor?
Simply answer is yes.
Practically, many of us aware that we can create a singleton class by using private constructor an creating a property, but we can create a singleton class by using public constructor as folows:
static void Main(string[] args)
{
try
{
Singleton obj3 = new Singleton2();
Singleton obj4 = new Singleton2();
Console.Read();
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
Console.Read();
}
}
static void Main(string[] args)
{
try
{
Singleton obj3 = new Singleton2();
Singleton obj4 = new Singleton2();
Console.Read();
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
Console.Read();
}
}
  Tweet This Post

Related posts:Is it possible to create constructor for an ...


Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/general-interview-stuffs/is-it-possible-to-create-constructor-for-an-abstract-class.html' rel='bookmark' title='Permanent Link: Is it possible to create constructor for an Abstract class?'>Is it possible to create constructor for an Abstract class?</a></li>
<li><a href='http://interview.msdotnetheaven.com/crystal-report/difference-between-clone-close-and-dispose-methods-of-crystal-report.html' rel='bookmark' title='Permanent Link: Difference between Clone, Close and Dispose methods of Crystal Report?'>Difference between Clone, Close and Dispose methods of Crystal Report?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/linq/define-lambda-expressions.html' rel='bookmark' title='Permanent Link: Define Lambda expressions'>Define Lambda expressions</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have also asked a tricky question like this:</p>
<p>Can we create a singleton class using public constructor?</p>
<p><span style="text-decoration: underline;">Simply answer is yes.</span></p>
<p>Practically, many of us aware that we can create a singleton class by using private constructor an creating a property, but we can create a singleton class by using public constructor as folows:</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">static void Main(string[] args)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">{</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">try</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">{</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Singleton obj3 = new Singleton2();</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Singleton obj4 = new Singleton2();</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Console.Read();</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">catch (Exception ex)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">{</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Console.WriteLine(ex.ToString());</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Console.Read();</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<blockquote><p>static void Main(string[] args)</p>
<p>{</p>
<p>try</p>
<p>{</p>
<p>Singleton obj3 = new Singleton2();</p>
<p>Singleton obj4 = new Singleton2();</p>
<p>Console.Read();</p>
<p>}</p>
<p>catch (Exception ex)</p>
<p>{</p>
<p>Console.WriteLine(ex.ToString());</p>
<p>Console.Read();</p>
<p>}</p>
<p>}</p></blockquote>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=How+can+I+create+a+Singleton+class+by+using+public+constructor%3F+http%3A%2F%2Ftinyurl.com%2Fy9wkopf" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+can+I+create+a+Singleton+class+by+using+public+constructor%3F+http%3A%2F%2Ftinyurl.com%2Fy9wkopf" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=633&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/general-interview-stuffs/is-it-possible-to-create-constructor-for-an-abstract-class.html' rel='bookmark' title='Permanent Link: Is it possible to create constructor for an Abstract class?'>Is it possible to create constructor for an Abstract class?</a></li>
<li><a href='http://interview.msdotnetheaven.com/crystal-report/difference-between-clone-close-and-dispose-methods-of-crystal-report.html' rel='bookmark' title='Permanent Link: Difference between Clone, Close and Dispose methods of Crystal Report?'>Difference between Clone, Close and Dispose methods of Crystal Report?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/linq/define-lambda-expressions.html' rel='bookmark' title='Permanent Link: Define Lambda expressions'>Define Lambda expressions</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/how-can-i-create-a-singleton-class-by-using-public-constructor.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How&#8217;s method overriding different from overloding?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/hows-method-overriding-different-from-overloding.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/hows-method-overriding-different-from-overloding.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 12:25:54 +0000</pubDate>
		<dc:creator>meghna</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[OOPs]]></category>
		<category><![CDATA[VB.Net Interview]]></category>
		<category><![CDATA[c# interview question]]></category>

		<guid isPermaLink="false">http://www.interview.msdotnetheaven.com/?p=580</guid>
		<description><![CDATA[In overriding, you change the method behavior for a derived class.
While, overloading simply involves having a method with the same name within the class.
  Tweet This Post

Related posts:What is method overloading?
Can you declare the override method static while the original method is non-static?
What does the Keyword &#8216;virtual&#8217;mean in the method definition?



Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/what-is-method-overloading.html' rel='bookmark' title='Permanent Link: What is method overloading?'>What is method overloading?</a></li>
<li><a href='http://interview.msdotnetheaven.com/oops-questions-and-answers/can-you-declare-the-override-method-static-while-the-original-method-is-non-static.html' rel='bookmark' title='Permanent Link: Can you declare the override method static while the original method is non-static?'>Can you declare the override method static while the original method is non-static?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/what-does-the-keyword-virtualmean-in-the-method-definition.html' rel='bookmark' title='Permanent Link: What does the Keyword &#8216;virtual&#8217;mean in the method definition?'>What does the Keyword &#8216;virtual&#8217;mean in the method definition?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In overriding, you change the method behavior for a derived class.</p>
<p>While, overloading simply involves having a method with the same name within the class.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=How%E2%80%99s+method+overriding+different+from+overloding%3F+http%3A%2F%2Ftinyurl.com%2F4d3mrmy" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How%E2%80%99s+method+overriding+different+from+overloding%3F+http%3A%2F%2Ftinyurl.com%2F4d3mrmy" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=580&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/what-is-method-overloading.html' rel='bookmark' title='Permanent Link: What is method overloading?'>What is method overloading?</a></li>
<li><a href='http://interview.msdotnetheaven.com/oops-questions-and-answers/can-you-declare-the-override-method-static-while-the-original-method-is-non-static.html' rel='bookmark' title='Permanent Link: Can you declare the override method static while the original method is non-static?'>Can you declare the override method static while the original method is non-static?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/what-does-the-keyword-virtualmean-in-the-method-definition.html' rel='bookmark' title='Permanent Link: What does the Keyword &#8216;virtual&#8217;mean in the method definition?'>What does the Keyword &#8216;virtual&#8217;mean in the method definition?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/hows-method-overriding-different-from-overloding.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What does the Keyword &#8216;virtual&#8217;mean in the method definition?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/what-does-the-keyword-virtualmean-in-the-method-definition.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/what-does-the-keyword-virtualmean-in-the-method-definition.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 12:22:14 +0000</pubDate>
		<dc:creator>meghna</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[OOPs]]></category>
		<category><![CDATA[VB.Net Interview]]></category>

		<guid isPermaLink="false">http://www.interview.msdotnetheaven.com/?p=576</guid>
		<description><![CDATA[The method can be over-ridden.
  Tweet This Post

Related posts:How&#8217;s method overriding different from overloding?
What is method overloading?
Can you declare the override method static while the original method is non-static?



Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/hows-method-overriding-different-from-overloding.html' rel='bookmark' title='Permanent Link: How&#8217;s method overriding different from overloding?'>How&#8217;s method overriding different from overloding?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/what-is-method-overloading.html' rel='bookmark' title='Permanent Link: What is method overloading?'>What is method overloading?</a></li>
<li><a href='http://interview.msdotnetheaven.com/oops-questions-and-answers/can-you-declare-the-override-method-static-while-the-original-method-is-non-static.html' rel='bookmark' title='Permanent Link: Can you declare the override method static while the original method is non-static?'>Can you declare the override method static while the original method is non-static?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The method can be over-ridden.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=What+does+the+Keyword+%E2%80%98virtual%E2%80%99mean+in+the+method+definition%3F+http%3A%2F%2Ftinyurl.com%2F4cmhwjz" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=What+does+the+Keyword+%E2%80%98virtual%E2%80%99mean+in+the+method+definition%3F+http%3A%2F%2Ftinyurl.com%2F4cmhwjz" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=576&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/hows-method-overriding-different-from-overloding.html' rel='bookmark' title='Permanent Link: How&#8217;s method overriding different from overloding?'>How&#8217;s method overriding different from overloding?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/what-is-method-overloading.html' rel='bookmark' title='Permanent Link: What is method overloading?'>What is method overloading?</a></li>
<li><a href='http://interview.msdotnetheaven.com/oops-questions-and-answers/can-you-declare-the-override-method-static-while-the-original-method-is-non-static.html' rel='bookmark' title='Permanent Link: Can you declare the override method static while the original method is non-static?'>Can you declare the override method static while the original method is non-static?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/what-does-the-keyword-virtualmean-in-the-method-definition.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Are private class-level variables inherited?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/are-private-class-level-variables-inherited.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/are-private-class-level-variables-inherited.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 12:18:54 +0000</pubDate>
		<dc:creator>meghna</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[VB.Net Interview]]></category>
		<category><![CDATA[c# interview question]]></category>

		<guid isPermaLink="false">http://www.interview.msdotnetheaven.com/?p=574</guid>
		<description><![CDATA[Yes ,but they are not accessible, out-side the class.
  Tweet This Post

Related posts:When you inherit a protected-class-level variable,who is it available to?
How do you inherit from a class in c#?
How&#8217;s method overriding different from overloding?



Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/when-you-inherit-a-protected-class-level-variablewho-is-it-available-to.html' rel='bookmark' title='Permanent Link: When you inherit a protected-class-level variable,who is it available to?'>When you inherit a protected-class-level variable,who is it available to?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/how-do-you-inherit-from-a-class-in-c.html' rel='bookmark' title='Permanent Link: How do you inherit from a class in c#?'>How do you inherit from a class in c#?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/hows-method-overriding-different-from-overloding.html' rel='bookmark' title='Permanent Link: How&#8217;s method overriding different from overloding?'>How&#8217;s method overriding different from overloding?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Yes ,but they are not accessible, out-side the class.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Are+private+class-level+variables+inherited%3F+http%3A%2F%2Ftinyurl.com%2F4kd69v9" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Are+private+class-level+variables+inherited%3F+http%3A%2F%2Ftinyurl.com%2F4kd69v9" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=574&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/when-you-inherit-a-protected-class-level-variablewho-is-it-available-to.html' rel='bookmark' title='Permanent Link: When you inherit a protected-class-level variable,who is it available to?'>When you inherit a protected-class-level variable,who is it available to?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/how-do-you-inherit-from-a-class-in-c.html' rel='bookmark' title='Permanent Link: How do you inherit from a class in c#?'>How do you inherit from a class in c#?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/hows-method-overriding-different-from-overloding.html' rel='bookmark' title='Permanent Link: How&#8217;s method overriding different from overloding?'>How&#8217;s method overriding different from overloding?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/are-private-class-level-variables-inherited.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When you inherit a protected-class-level variable,who is it available to?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/when-you-inherit-a-protected-class-level-variablewho-is-it-available-to.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/when-you-inherit-a-protected-class-level-variablewho-is-it-available-to.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 12:18:12 +0000</pubDate>
		<dc:creator>meghna</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[c# interview question]]></category>

		<guid isPermaLink="false">http://www.interview.msdotnetheaven.com/?p=572</guid>
		<description><![CDATA[classes in the same namespace.
  Tweet This Post

Related posts:Can I inherit two difference classes to partial classes?
How do you inherit from a class in c#?
Are private class-level variables inherited?



Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-i-inherit-two-difference-classes-to-partial-classes.html' rel='bookmark' title='Permanent Link: Can I inherit two difference classes to partial classes?'>Can I inherit two difference classes to partial classes?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/how-do-you-inherit-from-a-class-in-c.html' rel='bookmark' title='Permanent Link: How do you inherit from a class in c#?'>How do you inherit from a class in c#?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/are-private-class-level-variables-inherited.html' rel='bookmark' title='Permanent Link: Are private class-level variables inherited?'>Are private class-level variables inherited?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>classes in the same namespace.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=When+you+inherit+a+protected-class-level+variable%2Cwho+is+it+available+to%3F+http%3A%2F%2Ftinyurl.com%2F4wda4ys" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=When+you+inherit+a+protected-class-level+variable%2Cwho+is+it+available+to%3F+http%3A%2F%2Ftinyurl.com%2F4wda4ys" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=572&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-i-inherit-two-difference-classes-to-partial-classes.html' rel='bookmark' title='Permanent Link: Can I inherit two difference classes to partial classes?'>Can I inherit two difference classes to partial classes?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/how-do-you-inherit-from-a-class-in-c.html' rel='bookmark' title='Permanent Link: How do you inherit from a class in c#?'>How do you inherit from a class in c#?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/are-private-class-level-variables-inherited.html' rel='bookmark' title='Permanent Link: Are private class-level variables inherited?'>Are private class-level variables inherited?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/when-you-inherit-a-protected-class-level-variablewho-is-it-available-to.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Does c# supports multiple inheritance?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/does-c-supports-multiple-inheritance.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/does-c-supports-multiple-inheritance.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 12:17:32 +0000</pubDate>
		<dc:creator>meghna</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[c# interview question]]></category>

		<guid isPermaLink="false">http://www.interview.msdotnetheaven.com/?p=570</guid>
		<description><![CDATA[No, but we can use interfaces for that.
  Tweet This Post

No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>No, but we can use interfaces for that.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Does+c%23+supports+multiple+inheritance%3F+http%3A%2F%2Ftinyurl.com%2F4vauwsl" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Does+c%23+supports+multiple+inheritance%3F+http%3A%2F%2Ftinyurl.com%2F4vauwsl" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=570&type=feed" alt="" />

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/does-c-supports-multiple-inheritance.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do you inherit from a class in c#?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/how-do-you-inherit-from-a-class-in-c.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/how-do-you-inherit-from-a-class-in-c.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 11:43:58 +0000</pubDate>
		<dc:creator>meghna</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[c# interview question]]></category>

		<guid isPermaLink="false">http://www.interview.msdotnetheaven.com/?p=565</guid>
		<description><![CDATA[Place a colon(:)and then the name of the base class.
eg:
public baseclass
{
/ /signatures
}
public childclass : baseclass
{
//signature
}
  Tweet This Post

Related posts:When you inherit a protected-class-level variable,who is it available to?
Is it possible to create constructor for an Abstract class?
Can I inherit two difference classes to partial classes?



Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/when-you-inherit-a-protected-class-level-variablewho-is-it-available-to.html' rel='bookmark' title='Permanent Link: When you inherit a protected-class-level variable,who is it available to?'>When you inherit a protected-class-level variable,who is it available to?</a></li>
<li><a href='http://interview.msdotnetheaven.com/general-interview-stuffs/is-it-possible-to-create-constructor-for-an-abstract-class.html' rel='bookmark' title='Permanent Link: Is it possible to create constructor for an Abstract class?'>Is it possible to create constructor for an Abstract class?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-i-inherit-two-difference-classes-to-partial-classes.html' rel='bookmark' title='Permanent Link: Can I inherit two difference classes to partial classes?'>Can I inherit two difference classes to partial classes?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Place a colon(:)and then the name of the base class.</p>
<p>eg:</p>
<blockquote><p>public baseclass</p>
<p>{</p>
<p>/ /signatures</p>
<p>}</p>
<p>public childclass : baseclass</p>
<p>{</p>
<p>//signature</p>
<p>}</p></blockquote>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=How+do+you+inherit+from+a+class+in+c%23%3F+http%3A%2F%2Ftinyurl.com%2F4ltn96w" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+do+you+inherit+from+a+class+in+c%23%3F+http%3A%2F%2Ftinyurl.com%2F4ltn96w" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=565&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/when-you-inherit-a-protected-class-level-variablewho-is-it-available-to.html' rel='bookmark' title='Permanent Link: When you inherit a protected-class-level variable,who is it available to?'>When you inherit a protected-class-level variable,who is it available to?</a></li>
<li><a href='http://interview.msdotnetheaven.com/general-interview-stuffs/is-it-possible-to-create-constructor-for-an-abstract-class.html' rel='bookmark' title='Permanent Link: Is it possible to create constructor for an Abstract class?'>Is it possible to create constructor for an Abstract class?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-i-inherit-two-difference-classes-to-partial-classes.html' rel='bookmark' title='Permanent Link: Can I inherit two difference classes to partial classes?'>Can I inherit two difference classes to partial classes?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/how-do-you-inherit-from-a-class-in-c.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

