The subject really says it all. From what I can gather, the three have the same basic structure, but named differently depending on what context they are used? For instance, could the following class be any of the three:
public class Person {
private String name;
public void setName( String name ) {
this.name = name;
}
public String getName ( ) {
return ( this.name );
}
}
Is my understanding correct?
Thanks,
Isaac