mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 15:51:41 +03: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
|
||||
|
Loading…
Reference in New Issue
Block a user