October 12, 2013 Can't inherit a class and multiple interfaces. | ||||
|---|---|---|---|---|
| ||||
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?
| ||||
October 12, 2013 Re: Can't inherit a class and multiple interfaces. | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Agustin | 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
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply