MATLAB BUILDER JA 2 Guida Utente Pagina 181

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 292
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la 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
Vedere la pagina 180
1 2 ... 176 177 178 179 180 181 182 183 184 185 186 ... 291 292

Commenti su questo manuale

Nessun commento