vibebl Posted December 7, 2007 at 03:05 PM Report Share #152886 Posted December 7, 2007 at 03:05 PM um estado (em espera ou atendido) public void setEstado(String est) { estado = est; } public string getEstado() { return estado; } como criar o estado de espera ou atendimento Link to comment Share on other sites More sharing options...
vibebl Posted December 7, 2007 at 03:09 PM Author Report Share #152888 Posted December 7, 2007 at 03:09 PM public string obterEstado() { string estado; if (espera == true) estado = "nao atendido"; else estado = "atendido"; return (codigo.Tostring + "\t" + nome + "\t" + numero_atendimento.Tostring + "\t" + idade.ToString + "\t" + estado); Link to comment Share on other sites More sharing options...
Betovsky Posted December 7, 2007 at 03:47 PM Report Share #152892 Posted December 7, 2007 at 03:47 PM Não percebi. Podias elaborar um pouco mais a tua dúvida? "Give a man a fish and he will eat for a day; Teach a man to fish and he will eat for a lifetime. The moral? READ THE MANUAL !" Sign on a computer system consultant's desk Link to comment Share on other sites More sharing options...
TheDark Posted December 7, 2007 at 06:06 PM Report Share #152934 Posted December 7, 2007 at 06:06 PM Porque não utilizas antes uma property? Quanto à dúvida, também não entendi... Desaparecido. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now