aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-01-23 03:06:16 -0800
committerapache <apache@e5-web1.enlightenment.org>2019-01-23 03:06:16 -0800
commit20907fb5d82a54aa632016aae4a5247fcc3699e7 (patch)
treecb0ef56d879fc9261f6c63c8fc8f3f23a8283a50
parentWiki page generic-value.md changed with summary [Update to latest syntax] by ... (diff)
downloadwww-content-20907fb5d82a54aa632016aae4a5247fcc3699e7.tar.gz
Wiki page eo-classes.md changed with summary [Adapt to new Eolian syntax for inheritance] by Xavi Artigas
-rw-r--r--pages/develop/tutorials/c/eo-classes.md.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/pages/develop/tutorials/c/eo-classes.md.txt b/pages/develop/tutorials/c/eo-classes.md.txt
index 4918c6439..97cbdd796 100644
--- a/pages/develop/tutorials/c/eo-classes.md.txt
+++ b/pages/develop/tutorials/c/eo-classes.md.txt
@@ -53,19 +53,19 @@ You will now create an Eolian file for a class named ``Example.Rectangle``. The
This class will represent a rectangle shape, so it will have two properties, the ``width`` and ``height`` of the rectangle, which can be both read and written.
-Start with the class name and the list of its parent classes in parentheses:
+Start with the class name and the name of its parent class using the ``extends`` keyword:
```
-class Example.Rectangle (Efl.Object) {
+class Example.Rectangle extends Efl.Object {
}
```
-The only parent class is ``Efl.Object``, which is mandatory for regular classes (exceptions like *Interfaces* will be dealt with later).
+The parent class is ``Efl.Object``, which is mandatory for regular classes (exceptions like *Interfaces* will be dealt with later).
Next add a method declaration block, wherein you'll list the methods and properties of your class:
```
-class Example.Rectangle (Efl.Object) {
+class Example.Rectangle extends Efl.Object {
methods {
}
}
@@ -114,7 +114,7 @@ This method will take no parameters and return an integer.
The Eolian description for the ``Example.Rectangle`` class is now complete. The ``example_rectangle.eo`` file should look like this:
```
-class Example.Rectangle (Efl.Object) {
+class Example.Rectangle extends Efl.Object {
methods {
@property width {
set {