 




<?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>IT Answers &#187; interface</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/interface/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 22:12:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Interfaces and Properties</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/interfaces-and-properties/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/interfaces-and-properties/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 17:55:16 +0000</pubDate>
		<dc:creator>Gent01</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[Public Properties]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Since you can&#8217;t put properties into a c# interface, how do you expose each classes public properties when consuming the class as an interace instance? interface iAnimal {     bool Load(int Id);     bool Save(); } class Fish : iAnimal {     private string description;     public string Description     {          get { return [...]]]></description>
				<content:encoded><![CDATA[<p>Since you can&#8217;t put properties into a c# interface, how do you expose each classes public properties when consuming the class as an interace instance?</p>
<pre>


interface iAnimal

{

    bool Load(int Id);

    bool Save();

}



class Fish : iAnimal

{
    private string description;


    public string Description

    {
         get { return this.description; }
         set { this.description = value; }

    }

    public bool Load(int Id)
    {
        ...
    }



    public bool Save()

    {

        ...

    }

}







class Dog : iAnimal


{
    private string description;

    private string hypernessLevel;




    public string Description


    {

         get { return this.description; }

         set { this.description = value; }


    }



    public string hypernessLevel



    {


         get { return this.hypernessLevel; }


         set { this.hypernessLevel = value; }



    }



    public bool Load(int Id)

    {

        ...

    }






    public bool Save()


    {


        ...


    }


}


iAnimal animal;

Switch (TypeOfAnimal)
{
    case "Fish":
        animal = new Fish();
        break;
    case "Dog":

        animal = new Dog();

        break;
}

txtDescription.Text = animal.Description //How would you expose description and dog's hpernessLeve?
</pre>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/interfaces-and-properties/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>a s/w to design an interface which must initiate some actions and have backend connectivity</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/a-sw-to-design-an-interface-which-must-initiate-some-actions-and-have-backend-connectivity/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/a-sw-to-design-an-interface-which-must-initiate-some-actions-and-have-backend-connectivity/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 07:25:25 +0000</pubDate>
		<dc:creator>Siri</dc:creator>
				<category><![CDATA[Connectivity]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, I need suggestions! Please advise on what software to use for designing an interface. This interface initiates some actions and it must also have backend connectivity. the only thing that i want is for this thing to be NOT browser based]]></description>
				<content:encoded><![CDATA[<p>Hi,<br />
I need suggestions! Please advise on what software to use for designing an interface. This interface initiates some actions and it must also have backend connectivity. the only thing that i want is for this thing to be NOT browser based</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/a-sw-to-design-an-interface-which-must-initiate-some-actions-and-have-backend-connectivity/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/14 queries in 0.018 seconds using memcached
Object Caching 378/406 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-21 23:21:00 -->