MATLAB BUILDER JA 2 Guía de usuario Pagina 181

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 292
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 180
Using Class Methods
public Object clone()
Input Parameters
None
Exceptions
The clone method throws the following exception:
java.lang.CloneNotSupportedException
The object’s class does not implement the Cloneable in terf ace.
Example Cloning a Logical Array Object
Create a clone of MWLogicalArray object A:
boolean[][] Adata = {{true, false, false},
{false, true, false}};
MWLogicalArray A = new MWLogicalArray(Adata);
Object C = A.clone();
System.out.println("Clone of logical matrix A is:");
System.out.println(C.toString());
When run, the example displays this output:
Clone of logical matrix A is:
100
010
compareTo. MWLogicalArray inherits this method from the MWArray class.
equals.
MWLogicalArray inherits this method from the MWArray class.
4-105
Vista de pagina 180
1 2 ... 176 177 178 179 180 181 182 183 184 185 186 ... 291 292

Comentarios a estos manuales

Sin comentarios