In a Java interview, I got the following question:
Could you name some common examples of classes from real life? Not from real life PROGRAMMING, but in general. For instance. You explain the pedigrees to someone who knows nothing about programming.
The same goes for the simplest design pattern - singleton.
I know of an idea about the first question (about generics), I tried to name various hand tools (for example, fretsaw) that work with only one type of material, but actually they are not generics.
Please avoid such collections of offers, it is too naive and obvious.
source
share