Skip to content

Instantly share code, notes, and snippets.

@pjastr
Created October 20, 2017 21:46
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/ea0ce3aa84bdc202d14394bd4e376ec2 to your computer and use it in GitHub Desktop.
Save pjastr/ea0ce3aa84bdc202d14394bd4e376ec2 to your computer and use it in GitHub Desktop.

Napisz program zgodny z diagramem UML:

diagram

Sugerowana kolejność tworzenia klas: Osoba, Autor, Pozycja, Ksiazka, Czasopismo, Katalog.

Wnętrze konstrukorów parametrycznych powinno przypisywać parametry różnych możliwym polom klasy.

W klasie Program stwórz kilka obiektów typu Katalog i przetestuj na nich stworzone metody.

Uwaga: w programie nie możesz tworzyć nowych pól. Można tworzyć nowe metody, choć nie powinny dublować się z istniejącymi metodami.

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