If I create for example two classes and put the Funcionario
class with a Empregado
variable in the Empresa
class, what is the meaning of this and what is it for?
class Funcionario {
String nome;
String cpf;
}
class Empresa {
String nome;
Funcionario empregado;
}