代码搜索:clone
找到约 4,459 项符合「clone」的源代码
代码结果 4,459
www.eeworm.com/read/135507/13925122
java diskdriveinfo.java
final class DiskDriveInfo
{
//As before...
private Vector driveShare;
DiskDriveInfo(int size, String volLabel, Vector share)
{
//As before...
driveShare = (Vector)share.clone(
www.eeworm.com/read/132541/14085008
java intarray.java
package examples.cloning;
/** An example class used to demonstrate proper cloning
* concepts
*/
public class IntArray implements Cloneable {
private int[] a;
/** Class constructo
www.eeworm.com/read/132541/14085013
java pair.java
package examples.cloning;
/** An example class used to demonstrate how to
* enable cloning for a class without fields that
* contain object references..
*/
public class Pair implements Cl
www.eeworm.com/read/110993/15520585
cpp trash.cpp
//: C25:Trash.cpp {O}
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
#include "Trash.h"
using n
www.eeworm.com/read/104218/15701739
txt clonemodel.txt
clone模式既prototype模式,是构造模式中的一种.
意图为:用原型实例指定创建对象的种类,并且通过拷贝这些原型创建新的对象.
其关键代码为:
virtual product * prototype::clone(){
return new prototype(this->datas);
}
virtual product * concreteprototype_1::clo
www.eeworm.com/read/102981/15751459
java player.java
/*
* Player.java
*
* Copyright (C) 2000 Jason M. Hanley
* Released under the GNU General Public License (GPL)
* See license.txt for additional information.
*
* Created on August 6, 2000,
www.eeworm.com/read/191767/8423608
java graphic.java
/*
* An Abstract Graphic Class ( Prototype )
*/
import java.lang.*;
import java.io.*;
public abstract class Graphic implements IGraphic {
private String name;
public Object cl
www.eeworm.com/read/290548/8476873
c fork.c
/*
* linux/kernel/fork.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* 'fork.c' contains the help-routines for the 'fork' system call
* (see also entry.S and others).
* Fork is rathe
www.eeworm.com/read/187633/8613321
motd ircd.motd
-
- ==欢迎您进入本聊天网络==
-
- ==================================================================
-
- 遵守国家法律法规,严禁
www.eeworm.com/read/428248/8881616
java ersbox.java
/**
* File: ErsBox.java
* User: Administrator
* Describe: 俄罗斯方块的 Java 实现
*/
import java.awt.*;
/**
* 方格类,是组成块的基本元素,用自己的颜色来表示块的外观
*/
public class ErsBox implements Cloneable
//(A