This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Opäť parádne zadanie, tentokrát na tému detskej hry "Letí, letí, všetko letí". Je to super príležitosť precvičiť si prácu s dátumami (Date), zoznamami a rozhraniami. | |
| Téma: Evolúcia & Hra "Letí letí" | |
| Štýl: Slovenský, hravý, ale kódovo presný | |
| Tu je kompletné vypracovanie rozdelené do logických celkov: | |
| 1. Základné kamene (Abstrakt, Enum, Interface) | |
| Súbor: POHLAVIE.java (Úloha 2a - Enum) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Abstraktný základ a Rozhranie | |
| Súbor: rotable.java (Úloha 4) | |
| package vesmir; | |
| public interface rotable { | |
| void rotate(); | |
| } | |
| Súbor: Vesmirne_teleso.java (Úloha 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Úloha 1 (10b) – Základ a Enum | |
| Vytvoríme enum pre miestnosti a abstraktnú triedu Device. | |
| Súbor: INHOMELOC.java | |
| package smarthome; | |
| // 1.b - Samostatný enumerátor (mimo triedy Device) | |
| public enum INHOMELOC { | |
| PREDSIEN, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Úloha 1 (10b) – Základné stavebné kamene | |
| 1.a & 1.b: Enum a Abstraktná trieda | |
| Vytvoríme enum DEVQUALITY pre kvalitu súčiastok a triedu Suciastka. | |
| Súbor: DEVQUALITY.java | |
| package robot; | |
| // Úloha 1.b - Samostatný enumerátor (mimo triedy) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Úloha 1 (6b) | |
| 1.a & 1.b | |
| Zadanie: Vytvoriť enum VEHI_POSITION a abstraktnú triedu Suciastka. | |
| Súbor: VEHI_POSITION.java | |
| package vehicles; | |
| public enum VEHI_POSITION { | |
| CABIN, | |
| FRONT_AREA, |