mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-05 14:27:51 +02:00
fixed interface
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user