<?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>OOPS with C# Archives -</title>
	<atom:link href="https://mitindia.in/tag/oops-with-c/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/oops-with-c/</link>
	<description></description>
	<lastBuildDate>Thu, 21 Jul 2016 11:21:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://mitindia.in/wp-content/uploads/2023/03/cropped-android-chrome-512x512-1-32x32.png</url>
	<title>OOPS with C# Archives -</title>
	<link>https://mitindia.in/tag/oops-with-c/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>OOPs with C#</title>
		<link>https://mitindia.in/oops-with-c/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Thu, 21 Jul 2016 11:01:59 +0000</pubDate>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[OOPS with C#]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=364</guid>

					<description><![CDATA[<p>Object oriented programming with C# Classes: Class is a C# construct to model real-world objects into classes Exa: class Employee { private string _name; private char _gender; private string _qualification; private uint _salary; } Access Modifiers Public:Accessible to the members of the containing class as well as non-members of the class Private:Accessible only to the members [&#8230;]</p>
<p>The post <a href="https://mitindia.in/oops-with-c/">OOPs with C#</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h5>Object oriented programming with C#</h5>
<p><strong>Classes: </strong>Class is a C# construct to model real-world objects into classes</p>
<p>Exa:<br />
class Employee<br />
{<br />
private string _name;<br />
private char _gender;<br />
private string _qualification;<br />
private uint _salary;<br />
}</p>
<h5>Access Modifiers</h5>
<ul>
<li><strong>Public:Accessible to the members of the containing class as well as non-members of the class</strong></li>
<li><strong>Private:Accessible only to the members of the containing class</strong></li>
<li><strong>Protected:Accessible to the containing class or types derived from the containing class</strong></li>
</ul>
<p><strong>Constructors:</strong> Special method of a class that is called every time an instance of the class is created</p>
<p>Exa:<br />
Employee()<br />
{<br />
qualification = &#8220;Graduate&#8221;;<br />
}</p>
<p><strong>Destructor:</strong> Special method to perform cleanup operations</p>
<p>Syntax:</p>
<p>{<br />
body of destructor<br />
}</p>
<h6><span style="color: #ff0000;">Note:</span></h6>
<ul>
<li><strong><span style="color: #333399;">Methods can be overloaded on the basis of varying number of parameters or different data types.</span></strong></li>
<li><strong><span style="color: #333399;">Namespace consists of a group of related classes</span></strong></li>
<li><strong><span style="color: #333399;">Inheritance is the process of acquiring features of an existing class.</span></strong></li>
<li><strong><span style="color: #333399;">The class based on which the new class is created is called base class or parent class and the class that is created is called derived, sub or child class.</span></strong></li>
<li><strong><span style="color: #333399;">The keyword base is used to access members of the base class from inside a derived class.</span></strong></li>
<li><strong><span style="color: #333399;">The override keyword is used to modify a method, property or an indexer.</span></strong></li>
<li><strong><span style="color: #333399;">The new modifier is used to explicitly hide a member that is inherited from the base class.</span></strong></li>
<li><strong><span style="color: #333399;">Abstract Classes are classes that contain at least one abstract member (method without implementation). </span></strong><br />
<strong><span style="color: #333399;">Abstract class cannot be instantiated.</span></strong></li>
<li><strong><span style="color: #333399;">Overriding a method is to change the implementation of the method in the derived class.</span></strong></li>
<li><strong><span style="color: #333399;">The virtual keyword is used to modify the declaration of a method.</span></strong></li>
<li><strong><span style="color: #333399;">Explicit Interface Implementation is used to specify which interface a member function is implementing in case of a name ambiguity.</span></strong></li>
</ul>
<p><a href="http://www.mitindia.in/2016/07/21/names-space-virtual-method-c/">Namespcace, virtual method, abstract method</a></p>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Foops-with-c%2F&amp;linkname=OOPs%20with%20C%23" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Foops-with-c%2F&amp;linkname=OOPs%20with%20C%23" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Foops-with-c%2F&#038;title=OOPs%20with%20C%23" data-a2a-url="https://mitindia.in/oops-with-c/" data-a2a-title="OOPs with C#"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/oops-with-c/">OOPs with C#</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
