Конструктор копіювання

Worker(const Worker& w){

    name = w.name;

}

main

Worker w1("Bill");

Worker w2(w1);

Worker w3 = w1;