---
title: "Clone(java)小例子.txt"
author: "siye1982"
date: "2010-02-09T16:44:59Z"
tags: []
categories: ["编程语言"]
slug: "clone-java-txt"
draft: false
lastmod: "2010-02-09T16:44:59Z"
id: 592383
url: "https://siye1982.iteye.com/blog/592383"
---

```
public class A implements Cloneable {
	
public String name;

	
public Object clone() {
		
    A o = null;
		
try {
			
    o = (A) super.clone();
		
} catch (CloneNotSupportedException e) {
			
    e.printStackTrace();
		
}
		
    return o;
	}


}
```