Obvio, Amanda, que o cosntrutor vai chamar o método obtemCargo() que você
fez no item 1.
Jonathan

2010/4/27 Romulo Freires <[email protected]>

> Amanda, dentro desse construtor vai ter um String Cargo (Isso tá na lista
> não to colocando nada aqui).
>
> Só que quando você declarou uma variavel de instancia ela foi do tipo
> Cargo.
> Então você vai ter que fazer essa variavel receber o String Cargo.
>
> Dica use o método criado no exercicio 1.
>
>
>
> Em 26 de abril de 2010 22:41, Peter P. Lupo <[email protected]> escreveu:
>
> E o que vc não entendeu nisto? Pq sem saber o que vc não entendeu eu não
>> sei o que explicar.
>>
>> Abraço
>>
>> Peter P. Lupo
>> http://craftnicely.blogspot.com - http://sites.google.com/site/pplupo
>> MPS.BR Authorized Implementation Practitioner - Certified ScrumMaster
>> Sun Certified Java Associate - Java Brown Belt
>> +55 (021) 81742487
>>
>>
>> 2010/4/26 Amanda Sabbas <[email protected]>
>>
>> Estou tendo problemas na hora de fazer o construtor Trabalhador. Minha
>>> dúvida é no seguinte trecho: "O construtor deve obter a referência
>>> para o cargo correspondente ao nome do cargo dado, e inicializar a
>>> variável de instância correspondente."
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Comp 2 - Geral" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<comp2-geral%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/comp2-geral?hl=en.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Comp 2 - Geral" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<comp2-geral%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/comp2-geral?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<comp2-geral%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Comp 
2 - Geral" 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/comp2-geral?hl=en.

Responder a