[Vala] Interfaces and Mixins
- From: tecywiz121 <tecywiz121 hotmail com>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] Interfaces and Mixins
- Date: Sat, 12 Jun 2010 10:03:28 -0400
Hey,
The following code won't compile unless I create a flush() in Concrete,
but I can't seem to access Entity.flush() at all, any way around this
that doesn't involve making Entity a class?
public interface Flushable : Object
{
public abstract void flush();
}
public interface Entity : Object, Flushable
{
public virtual void flush()
{
// Do Something
}
}
public class Concrete : Object, Flushable, Entity
{
public static int main(string[] args)
{
stdout.printf("Hello World\n");
return 0;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]