Jump to content

Criar uma classe


oliveira1991

Recommended Posts

Mostrar() e Alterar() o quê?

O desenho da classe tem de começar com a especificação. Podes perguntar-te a ti mesmo:

- De que forma vou consumir a classe?

- De que forma preciso eu de aceder às propriedades?

- Preciso mesmo de uma classe se só quero distinguir um objecto por duas Strings?

Sérgio Ribeiro


"Great coders aren't born. They're compiled and released"
"Expert coders do not need a keyboard. They just throw magnets at the RAM chips"

Link to comment
Share on other sites

É.

Excepto os Dim que teriam de ser ou Public, ou passar para Public Property, ou Private se o intuito dos métodos Alterar e Mostrar é a exposição desses valores. Lá está...as perguntas ainda se aplicam.

Sérgio Ribeiro


"Great coders aren't born. They're compiled and released"
"Expert coders do not need a keyboard. They just throw magnets at the RAM chips"

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.