summaryrefslogtreecommitdiff
path: root/pages/develop/tutorials
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 /pages/develop/tutorials
parent734b708ad07b963a971d93c9f883fcfedba26d76 (diff)
Wiki page eo-classes.md changed with summary [Adapt to new Eolian syntax for inheritance] by Xavi Artigas
Diffstat (limited to 'pages/develop/tutorials')
-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
53 53
54This 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. 54This 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.
55 55
56Start with the class name and the list of its parent classes in parentheses: 56Start with the class name and the name of its parent class using the ``extends`` keyword:
57 57
58``` 58```
59class Example.Rectangle (Efl.Object) { 59class Example.Rectangle extends Efl.Object {
60} 60}
61``` 61```
62 62
63The only parent class is ``Efl.Object``, which is mandatory for regular classes (exceptions like *Interfaces* will be dealt with later). 63The parent class is ``Efl.Object``, which is mandatory for regular classes (exceptions like *Interfaces* will be dealt with later).
64 64
65Next add a method declaration block, wherein you'll list the methods and properties of your class: 65Next add a method declaration block, wherein you'll list the methods and properties of your class:
66 66
67``` 67```
68class Example.Rectangle (Efl.Object) { 68class Example.Rectangle extends Efl.Object {
69 methods { 69 methods {
70 } 70 }
71} 71}
@@ -114,7 +114,7 @@ This method will take no parameters and return an integer.
114The Eolian description for the ``Example.Rectangle`` class is now complete. The ``example_rectangle.eo`` file should look like this: 114The Eolian description for the ``Example.Rectangle`` class is now complete. The ``example_rectangle.eo`` file should look like this:
115 115
116``` 116```
117class Example.Rectangle (Efl.Object) { 117class Example.Rectangle extends Efl.Object {
118 methods { 118 methods {
119 @property width { 119 @property width {
120 set { 120 set {