<?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>Shakti Tanwar &#187; OOPS in C#</title>
	<atom:link href="http://shaktitanwar.com/category/oops-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://shaktitanwar.com</link>
	<description>Shakti Tanwar - “Dot Net Training”</description>
	<lastBuildDate>Tue, 26 Aug 2025 09:23:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.4</generator>
	<item>
		<title>OOPS in C# &#8211; Interface polymorphism Part 5</title>
		<link>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-5/</link>
		<comments>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-5/#comments</comments>
		<pubDate>Sat, 09 May 2015 18:46:18 +0000</pubDate>
		<dc:creator><![CDATA[Shakti Tanwar]]></dc:creator>
				<category><![CDATA[OOPS in C#]]></category>

		<guid isPermaLink="false">http://shaktitanwar.com/?p=331</guid>
		<description><![CDATA[Scenario:- Different implementations for both interface and class. public interface MyInterface1 { int foo(); } public interface MyInterface2 { int foo(); } public class MyClass : MyInterface1, MyInterface2 { int a = 10; #region MyClass Members public int foo() { return a; } #endregion #region MyInterface1 Members int MyInterface1.foo() { [&#8230;]]]></description>
		<wfw:commentRss>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OOPS in C# &#8211; Class vs Struct</title>
		<link>http://shaktitanwar.com/oops-in-c-class-vs-struct/</link>
		<comments>http://shaktitanwar.com/oops-in-c-class-vs-struct/#comments</comments>
		<pubDate>Sat, 09 May 2015 18:45:57 +0000</pubDate>
		<dc:creator><![CDATA[Shakti Tanwar]]></dc:creator>
				<category><![CDATA[OOPS in C#]]></category>

		<guid isPermaLink="false">http://shaktitanwar.com/?p=321</guid>
		<description><![CDATA[Class v/s Struct 1.) Class can have default constructor. Struct can only have parametrized constructors. 2.) Class is a reference type whereas Struct is a value type. 3.) Struct can’t inherit or implement whereas class can both implement interfaces and inherit interfaces. We will start by simple interface implementation. Let’s [&#8230;]]]></description>
		<wfw:commentRss>http://shaktitanwar.com/oops-in-c-class-vs-struct/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OOPS in C# &#8211; Interface polymorphism Part 4</title>
		<link>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-4/</link>
		<comments>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-4/#comments</comments>
		<pubDate>Sat, 09 May 2015 18:45:46 +0000</pubDate>
		<dc:creator><![CDATA[Shakti Tanwar]]></dc:creator>
				<category><![CDATA[OOPS in C#]]></category>

		<guid isPermaLink="false">http://shaktitanwar.com/?p=329</guid>
		<description><![CDATA[Scenario:- Interface polymorphism with multiple interfaces having same method. public interface MyInterface1 { int foo(); } public interface MyInterface2 { int foo(); } public class MyClass : MyInterface1, MyInterface2 { int a = 10; #region MyInterface1 Members public int foo() { return a; } #endregion } MyClass obj = new [&#8230;]]]></description>
		<wfw:commentRss>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OOPS in C# &#8211; Interface polymorphism Part 3</title>
		<link>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-3/</link>
		<comments>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-3/#comments</comments>
		<pubDate>Sat, 09 May 2015 18:45:42 +0000</pubDate>
		<dc:creator><![CDATA[Shakti Tanwar]]></dc:creator>
				<category><![CDATA[OOPS in C#]]></category>

		<guid isPermaLink="false">http://shaktitanwar.com/?p=327</guid>
		<description><![CDATA[Scenario :- Lets now discuss explicit implementation of interface be taking below example. In explicit implementation functions are qualifies with parent interface names as below:- public interface MyInterface { int foo(); } public class MyClass : MyInterface { int a = 10; #region myinterfacse Members int MyInterface.foo() { throw new [&#8230;]]]></description>
		<wfw:commentRss>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OOPS in C# &#8211; Interface polymorphism Part 2</title>
		<link>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-2/</link>
		<comments>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-2/#comments</comments>
		<pubDate>Sat, 09 May 2015 18:45:33 +0000</pubDate>
		<dc:creator><![CDATA[Shakti Tanwar]]></dc:creator>
				<category><![CDATA[OOPS in C#]]></category>

		<guid isPermaLink="false">http://shaktitanwar.com/?p=325</guid>
		<description><![CDATA[Scenario :- Private Implementation of Interface member. Remember OOPS is a bit tricky and if you write MyClass definition as below then &#160; public interface MyInterface1 { int foo(); } public class MyClass : myinterfacse { int a=10; int foo() { return a; } } It will give a compile [&#8230;]]]></description>
		<wfw:commentRss>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OOPS in C# &#8211; Interface polymorphism Part 1</title>
		<link>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-1/</link>
		<comments>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-1/#comments</comments>
		<pubDate>Sat, 09 May 2015 18:45:30 +0000</pubDate>
		<dc:creator><![CDATA[Shakti Tanwar]]></dc:creator>
				<category><![CDATA[OOPS in C#]]></category>

		<guid isPermaLink="false">http://shaktitanwar.com/?p=323</guid>
		<description><![CDATA[Scenario 10:- First we will discuss implicit implementation of interface. public interface MyInterface { int foo(); } public class MyClass : MyInterface { private int a = 10; public int foo() { return a; } } MyClass obj = new MyClass(); MyInterface obj2 = (MyInterface) obj; obj.foo(); //Returns 10 obj2.foo(); [&#8230;]]]></description>
		<wfw:commentRss>http://shaktitanwar.com/oops-in-c-interface-polymorphism-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OOPS in C# &#8211; Struct</title>
		<link>http://shaktitanwar.com/oops-in-c-struct/</link>
		<comments>http://shaktitanwar.com/oops-in-c-struct/#comments</comments>
		<pubDate>Sat, 09 May 2015 18:45:22 +0000</pubDate>
		<dc:creator><![CDATA[Shakti Tanwar]]></dc:creator>
				<category><![CDATA[OOPS in C#]]></category>

		<guid isPermaLink="false">http://shaktitanwar.com/?p=319</guid>
		<description><![CDATA[Struct in .Net:- 1.) Struct are value types. 2.) Struct in .Net are sealed i.e. they cannot be inherited. 3.) The members of a Struct are by default private and not public. 4.) Struct can have Main method also just like a class. 5.) Struct can even have a constructor [&#8230;]]]></description>
		<wfw:commentRss>http://shaktitanwar.com/oops-in-c-struct/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OOPS In C# &#8211; Interface</title>
		<link>http://shaktitanwar.com/oops-in-c-interface/</link>
		<comments>http://shaktitanwar.com/oops-in-c-interface/#comments</comments>
		<pubDate>Sat, 09 May 2015 18:45:18 +0000</pubDate>
		<dc:creator><![CDATA[Shakti Tanwar]]></dc:creator>
				<category><![CDATA[OOPS in C#]]></category>

		<guid isPermaLink="false">http://shaktitanwar.com/?p=317</guid>
		<description><![CDATA[Interfaces:- In layman’s terms we can say that interface is a pure abstract class with all methods abstract and no data members. Interview definition:- Interface is a contract between two parties. The contract is that all the parties implementing interfaces must implement all the methods declared in interfaces. Abstract class [&#8230;]]]></description>
		<wfw:commentRss>http://shaktitanwar.com/oops-in-c-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OOPS In C# &#8211; Inheritance Part 3</title>
		<link>http://shaktitanwar.com/oops-in-c-inheritance-part-3/</link>
		<comments>http://shaktitanwar.com/oops-in-c-inheritance-part-3/#comments</comments>
		<pubDate>Sat, 09 May 2015 18:45:07 +0000</pubDate>
		<dc:creator><![CDATA[Shakti Tanwar]]></dc:creator>
				<category><![CDATA[OOPS in C#]]></category>

		<guid isPermaLink="false">http://shaktitanwar.com/?p=305</guid>
		<description><![CDATA[Scenario:- Function present in both base class and child class. This concept is called Method hiding. See the sample code below: public class MyClass { public void foo() { Console.WriteLine("Base version of foo"); } } public class MyChild : MyClass { public new void foo() { Console.WriteLine("Child version of foo"); [&#8230;]]]></description>
		<wfw:commentRss>http://shaktitanwar.com/oops-in-c-inheritance-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OOPS In C# &#8211; Inheritance Part 4</title>
		<link>http://shaktitanwar.com/oops-in-c-inheritance-part-4/</link>
		<comments>http://shaktitanwar.com/oops-in-c-inheritance-part-4/#comments</comments>
		<pubDate>Sat, 09 May 2015 18:44:57 +0000</pubDate>
		<dc:creator><![CDATA[Shakti Tanwar]]></dc:creator>
				<category><![CDATA[OOPS in C#]]></category>

		<guid isPermaLink="false">http://shaktitanwar.com/?p=307</guid>
		<description><![CDATA[Scenario:- Function present in both base class and child class but this time virtual in base class. See the sample code below: public class MyClass { public virtual void foo() { Console.WriteLine("Base version of foo"); } } public class MyChild : MyClass { public new void foo() { Console.WriteLine("Child version [&#8230;]]]></description>
		<wfw:commentRss>http://shaktitanwar.com/oops-in-c-inheritance-part-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
