<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Getting Started</title><link>http://forums.asp.net/15.aspx</link><description>The perfect forum for ASP.NET novices. No question too simple! &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=21&amp;amp;c=17" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Retuning interface is fine.</title><link>http://forums.asp.net/thread/3274598.aspx</link><pubDate>Sat, 04 Jul 2009 11:39:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274598</guid><dc:creator>sujithukvl@gmail.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274598.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=3274598</wfw:commentRss><description>&lt;p&gt;One more advantage I found over returning interface is that, if a person wants a property &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;to be exposed as public (to be available in other class) He is force to write it in the interface&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not just in the class&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ie he also want it in interface ie our return type.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;so he write all properties&amp;nbsp; in the interface that are going to be public&amp;nbsp; in class.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;this gives good control, every thing public in class will be there in interface and this is good&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Retuning class or interface</title><link>http://forums.asp.net/thread/3273506.aspx</link><pubDate>Fri, 03 Jul 2009 12:32:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273506</guid><dc:creator>nijhawan.saurabh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273506.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=3273506</wfw:commentRss><description>&lt;p&gt;Returning Interface can be handy as it implements OOPS concepts.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Retuning class or interface</title><link>http://forums.asp.net/thread/3273482.aspx</link><pubDate>Fri, 03 Jul 2009 12:19:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273482</guid><dc:creator>Mr^B</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273482.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=3273482</wfw:commentRss><description>&lt;p&gt;Why would you want to pass the concrete implementation of the Interface rather than the Interface?&lt;/p&gt;&lt;p&gt;Why is there an Interface there if you aren&amp;#39;t going to use it?&lt;/p&gt;</description></item><item><title>Retuning class or interface</title><link>http://forums.asp.net/thread/3273379.aspx</link><pubDate>Fri, 03 Jul 2009 11:19:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273379</guid><dc:creator>sujithukvl@gmail.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273379.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=3273379</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have Interface IPageObject&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I also have class PageObject implements IPageObject&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&lt;/p&gt;
&lt;p&gt;Function GetById(ByVal pageObjectId As String) As IPageObject&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;Function GetById(ByVal pageObjectId As String) As PageObject&lt;/p&gt;
&lt;p&gt;Which is better and why &lt;/p&gt;
&lt;p&gt;:(&lt;/p&gt;</description></item></channel></rss>