Created
April 6, 2011 17:18
-
-
Save gurkanoluc/906079 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Car implements Cloneable { | |
public String name; | |
public Car() { | |
// TODO Auto-generated constructor stub | |
} | |
public Car(String name) | |
{ | |
this.name = name; | |
} | |
public void write() | |
{ | |
System.out.println(this.name); | |
} | |
@Override | |
public Object clone() throws CloneNotSupportedException { | |
// TODO Auto-generated method stub | |
return super.clone(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment