mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-17 21:49:22 +01:00
fixed interface
This commit is contained in:
parent
b86786023c
commit
14c3fc4ffe
@ -255,8 +255,9 @@ class Message : GLib.Object { // Class Message extends GLib's Object
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface InterfaceDemo { // Can be used as a mixin
|
interface Laptop { // May only contain abstract methods
|
||||||
// ...
|
public abstract void turn_on();
|
||||||
|
public abstract void turn_off();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Since method overloading isn't possible, you can use named constructors
|
// Since method overloading isn't possible, you can use named constructors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user