| 1 | back to first page[..][[BR]] |
| 2 | back to ["Work program - Spain"][[BR]] |
| 3 | |
| 4 | = Object Oriented programming with R - S4 = |
| 5 | |
| 6 | Object is a set of variables and functions = slot [[BR]] |
| 7 | |
| 8 | We need : |
| 9 | - to define the object --> setClass and type the object |
| 10 | - to define the function --> setMethod |
| 11 | |
| 12 | Oriented object programmation: |
| 13 | - prevent to add a character to a numeric |
| 14 | - allows to check if the object follow some rules |
| 15 | - enable to define one object like Inherit from the properties of another object, thus becoming its son --> contains |
| 16 | - allow to define all the tools concerning the object and to lock them up in blockss, without habing to look after anymore = encapsulation |