diff options
author | Milo Gilad <milogaccnts@gmail.com> | 2017-08-26 08:57:34 -0400 |
---|---|---|
committer | Milo Gilad <milogaccnts@gmail.com> | 2017-08-26 08:57:34 -0400 |
commit | 14c3fc4ffe96ec9c13469a6005ce4e1497c74358 (patch) | |
tree | e6f81c2db512b614e22aa03d0f84210281ac949e /vala.html.markdown | |
parent | b86786023cce9b664dc7f529e1c7bea47356b8e3 (diff) |
fixed interface
Diffstat (limited to 'vala.html.markdown')
-rwxr-xr-x | vala.html.markdown | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vala.html.markdown b/vala.html.markdown index 130ce7a9..ac1f19eb 100755 --- a/vala.html.markdown +++ b/vala.html.markdown @@ -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 |