On 2014-01-01 01:52, Frustrated wrote:
Is there an easy way to implement properties of an interface within a
class instead of having to duplicate almost the exact same code with
generic properties?

interface A
{
     @property int data();
     @property int data(int value);

}

class B : A
{
   @property int data() { return m_data; } // read property
   @property int data(int value) { return m_data = value; } // write
property
}

You can't use an abstract class?

--
/Jacob Carlborg

Reply via email to