Commit Graph

4 Commits

Author SHA1 Message Date
Xavi Artigas 6b8dac2677 Ehem... do not leak the test objects 2017-11-16 18:39:06 +01:00
Xavi Artigas ae932ce226 Simplify eo-inherit even more
Square does not need "side", can use the parent's setters to make sure width=height always.
2017-11-15 18:20:42 +01:00
Xavi Artigas 1e380eace9 Reorganize inheritance example
Added circle to illustrate shape interface
Removed shape interface from square, since it inherits from rectangle.
Removed square private data and use its parent's data through the public accessors.
Do not overwrite rectangle's accessors in square, only define the new side.
Removed class cons/destructors which are not used (tutorial is complex enough)
Removed color property from interface (tutorial is complex enough)
2017-11-15 16:02:37 +01:00
Xavi Artigas 4380baece8 Split eo-classes in two: classes and inherit
This simplifies the first tutorial (classes).
2017-11-15 11:55:04 +01:00