What I'm trying to to do is the following:
class myClass {
myClass(myClass o) {
//copies the variables of o into this class
}
void foo() {
myClass temp = new myClass(this);
}
}
Is this viable to making 2 instances with the exact variables inside foo()?