www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Can't inherit a class and multiple interfaces.

reply "Agustin" <agustin.l.alvarez hotmail.com> writes:
Like the the title says, i cannot inherit a class and have 
interfaces.

class A
{
}

interface B
{
}

class C : A, B -> Error
{
}

I know that D doesn't support multiple classes, but that means i 
cannot mix a class and an interface?
Oct 11 2013
parent "Agustin" <agustin.l.alvarez hotmail.com> writes:
On Saturday, 12 October 2013 at 01:35:48 UTC, Agustin wrote:
 Like the the title says, i cannot inherit a class and have 
 interfaces.

 class A
 {
 }

 interface B
 {
 }

 class C : A, B -> Error
 {
 }

 I know that D doesn't support multiple classes, but that means 
 i cannot mix a class and an interface?
Oh i had a typo error, no need to answer me this :D
Oct 11 2013