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]. For more options, visit this group at http://groups.google.com/group/comp2-geral?hl=en.
