I am learning Java for the first time, and in the tutorial I am watching (https://www.youtube.com/watch?v=grEKMHGYyns), the instructor writes this code:
private Name personName;
public Person(Name personName){
this.personName = personName;
}
Does anyone know what the object 'personName' of the constructor class 'Name' does?
How would I be able to set a value to 'personName' using the constructor 'Name' of class 'Name'?
I would show you the code for 'Name,' but I don't know how to set it up so that the object of 'Name' would hold any value.
Thanks for your help!