Skip to content

Instantly share code, notes, and snippets.

@pjastr
Last active October 12, 2017 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjastr/7f05d5a2479c5a10187d0890c4f12135 to your computer and use it in GitHub Desktop.
Save pjastr/7f05d5a2479c5a10187d0890c4f12135 to your computer and use it in GitHub Desktop.

UML - UML (Unified Modelling Language) - graficzny system wizualizacji, specyfikowania oraz dokumentowania składników systemów informatycznych.

Nazwa klasy: modyfikator NazwaKlasy ustawienia

Pola klasy: modyfikator nazwaPola: typ = wartoscPoczatkowa ustawienia

Metody modyfikator NazwaMetody(parametr1, …): typ ustawienia

Modyfikatory dostępu:

  • + to public
  • # to protected
  • to private
  • ~ to internal

Przykład:

class Dom
{
	private int powierzchnia;
	public Dom()
	{
		powierzchnia = 150;
	}

	public Dom(int powierzchnia)
	{
		this.powierzchnia = powierzchnia;
	}
}

Ex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment