public class Employee {
private String name;
private String SSN;
private Employee e = new Employee("ME","MYSSN");
Driver x = new Driver(32);
public Employee(){
}
public Employee(Employee e){
this(e.name,e.SSN);
}
public Employee(String name, String SSN){
this.name = name;
this.SSN = SSN;
}
public static void main(String [] args){
Employee e = new Employee("beletech", "me beletech");
try {
Object f = e.clone();
} catch (CloneNotSupportedException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
Can anyone help? I'm getting a stack overflow error....the Driver class I have used in here is just a class that has one public member, licencenum .......
One more thing..i'm not sure how to put the tags around the code..help on that one too :(:(:((:(
thanks loads everyone