I am trying to construct a superclass as itself like this:
public Parent(Parent parent) {
// Set this class as itself
this = parent;
}
But it is not allowed by the compiler, but do I have to set all
variables like this:
public Parent(Parent parent) {
// Set this class as itself
this.id = parent.getID();
this.cclass = parent.getCClass();
}
Or are there any easier way?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"JAVA-experts" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/java-experts?hl=ab
-~----------~----~----~----~------~----~------~--~---