Hey, I need help for a Java exam, which is on tuesday. I watched some tutorials, but still need help. I kind of know already what they could ask me. You see it down below
Usage example
A customer such as DB Fernverkehr commissioned the implementation of a new software solution for monitoring trains during ongoing operation. For this, the software first needs to know the inventory of the vehicles, that is, the trains.
For the tool inventory that requires the following requirements, it is first necessary to develop a technical Java class model.
-> Each train is specifically either a long-distance train or a regional train, but other types may be added later
-> Each train consists of a locomotive and wagons, but how many there may be is not yet defined.
-> All components of a train must have an identification number, which can contain both numbers and letters
-> Every locomotive (or locomotive) has a drive. The possible drive types are fixed, i.e. a defined set of values.
-> Wagons are also of a specific type, such as passenger wagons or freight wagons. New species may be added here over time.
Part 1 (group work)
Create a small classroom model based on the information above
-> Classes: train, locomotive, wagon, long-distance train, regional train, passenger car, freight car
-> Attributes: id number (string), driver (enum)
Reference class model
link:diagrams/exam-classmodell-scenario-1.pum1[]
Part 2 (Theory and Knowledge)
In the context of the above task:
-> Questions...
-> Integration of abstract classes into the model if they are not included yet
-> Classes, attributes and their visibility
-> What kind of vibration collection can you use to manage trains and why
-> Options to filter trains (foreach+-if(), stream+foreach(), SQL- Where)
