Typically, methods are defined on a class, and the methods defined on the class are applicable to the instances (direct or indirect) of this -class. These methods are called inherited methods.
Index: doc/next-tutorial.html =================================================================== diff -u -rfdecdc39d01dbc9fc816e432e793aeff2a78d82e -r6f01a5690062d994d0bb791c599424c2bc1e7bb3 --- doc/next-tutorial.html (.../next-tutorial.html) (revision fdecdc39d01dbc9fc816e432e793aeff2a78d82e) +++ doc/next-tutorial.html (.../next-tutorial.html) (revision 6f01a5690062d994d0bb791c599424c2bc1e7bb3) @@ -1604,7 +1604,7 @@ are defined. Both classes have accessor methods for all their attributes specified (Note that we show the accessor methods only in this example). By defining properties we can use the name of the -attribute as method name to access the variable. . The listing below +attribute as method name to access the variable. The listing below shows an implementation of this conceptual model in NX.
We define here a class named Person with two properties, namely - name and birthday.
When the class Person is defined, NX provides as well automatically -accessors. Accessors are methods named like the variables, which are -used to access (to read and write) the underlying instance -variables. Therefore, in our example, the class Person has two -methods implied by the property definition, namely the method name -and the method birthday.
The class Student is defined as a specialization of Person with two additional properties, namely matnr and oncampus. The property matnr is required (it has to be provided, when an instance of this @@ -2251,14 +2249,14 @@ class. This object (or class) contains the method. If the object (or class) is deleted, the contained methods will be deleted as well.
Typically, methods are defined on a class, and the methods defined on the class are applicable to the instances (direct or indirect) of this -class. These methods are called inherited methods.
In the following example method foo is an inherited method defined +
In the following example method foo is an instance method defined on class C.
Note that we can define a per-object method that shadows (redefines) -for this object an inherited method.