Obrigado. Que o seu exemplo sirva a outros com dúvidas.
Perguntem! :-)

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/8 Daniel Daim <[email protected]>

> Queria agradecer aos monitores e ao professor pela ajuda. Já conclui e
> enviei minha lista de exercícios para email dos trabalhos.
>
> 2010/4/8 Peter P. Lupo <[email protected]>
>
>> hmm... eu não entendi a relação de uma coisa com a outra.
>>
>> Construtores servem pra fazer inicializações na classe.
>>
>> Variáveis private servem para impedir que os valores sejam
>> acessados/modificados diretamente de fora da classe.
>>
>> Pode explicar um pouco melhor sua dúvida, por favor?
>>
>> 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/8 Renan Machado <[email protected]>
>>
>>> pra que fazer construtores se as variáveis de instância tem que ser
>>>
>>> private ?
>>>
>>> --
>>> 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.
>>
>
>
>
> --
> Daniel Daim L. de Araujo
> Diretoria de Treinamento e Recursos Humanos
>
> EJCM – Empresa Júnior de Consultoria em Microinformática
> Departamento de Ciência da Computação – UFRJ
> www.ejcm.com.br   -   (21) 2598-9440
>
> --
> 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