代码搜索:clone

找到约 4,459 项符合「clone」的源代码

代码结果 4,459
www.eeworm.com/read/238749/13326934

cpp main.cpp

//main.cpp #include "Prototype.h" #include using namespace std; int main(int argc,char* argv[]) { Prototype* p = new ConcretePrototype(); Prototype* p1 = p->Clone(); return 0
www.eeworm.com/read/137284/13335202

cpp tzobject.cpp

// tzObject.cpp: implementation of the tzObject class. // ////////////////////////////////////////////////////////////////////// #include #include "tzObject.h" ///////////////////////
www.eeworm.com/read/320605/13421920

java localcopy.java

//: appendixa:LocalCopy.java // Creating local copies with clone(). // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002 // www.BruceEckel.com. See copyright notice in CopyRight.txt. import co
www.eeworm.com/read/320605/13421923

java horrorflick.java

//: appendixa:HorrorFlick.java // You can insert Cloneability at any level of inheritance. // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002 // www.BruceEckel.com. See copyright notice in Co
www.eeworm.com/read/320605/13421926

java checkcloneable.java

//: appendixa:CheckCloneable.java // Checking to see if a reference can be cloned. // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002 // www.BruceEckel.com. See copyright notice in CopyRight.
www.eeworm.com/read/320605/13421931

java deepcopy.java

//: appendixa:DeepCopy.java // Cloning a composed object. // {Depends: junit.jar} // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002 // www.BruceEckel.com. See copyright notice in CopyRight.
www.eeworm.com/read/320516/13425033

htm chapter12.htm

Thinking in Java | Chinese Version by Trans Bot
www.eeworm.com/read/313009/13598764

cpp items.cpp

//implementation of items class #include "stdio.h" #include "items.h" items::items() { } items::~items() { } int items::compare(items *) { return 0; } items *items::clone() { retu
www.eeworm.com/read/313005/13599174

java sheep.java

package com.javapatterns.prototype.cloneexample; public class Sheep implements Cloneable { private String name = "Dolly"; public Object clone() throws CloneNotSupportedException
www.eeworm.com/read/313005/13599187

java prototype.java

package com.javapatterns.prototype; public interface Prototype extends Cloneable { Object clone(); }