$$$$ OBJE NOTICE CHAT 11/09/12 21:17:27 7124 DATE 11/09/12 Operateur OBJE Voir aussi : DEBM FINM -------------- METHODE HERITE OBJET1 = OBJET METH1 ; Description : ____________ The OBJET operator produces an object of type OBJET of class METHODE1. During creation the METHODE1 constructor is applied on the object. Comments : _________ Main difference between on object OBJET and an object TABLE is that it is not possible to use an object OBJET whithout using its own methods. These methods are defined by methods METHODE or HERITE which are given automatically to the object. In order to apply a method on the object OBJET1 the syntax is : RESU1 RESU2... = OBJET1%METH1 ARG1 ARG2 ....; METH1 is a method which is defined as a procedure. It is only necessary to begin with DEBMETH instead of DEBPROC and to finish with FINMETH instead of FINPROC. Within the method METH1 it is possible to access to the elements belonging to the object by the following syntaxes : For the element ELE1 it can be write : %ELE1 = ... or RES = %ELE1 +.... As for indexes of TABLE object, ELE1 can be any object.
© Cast3M 2003 - All rights reserved.
Disclaimer